Every line of 'javascript isset' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
9 export default function isset(value: T): boolean { 10 if (typeof value === 'string' && value.length > 0) { 11 return true; 12 } else { 13 return typeof value !== 'undefined' && value != null; 14 } 15 }
87 function isset( obj ) { 88 return 0 < obj.length; 89 }
150 function isset(obj) { 151 return typeof obj !== 'undefined'; 152 153 }
83 function isSet(val) { 84 switch (typeof val) { 85 case "string": 86 return val !== undefined && val !== "" && val !== null; 87 case "object": 88 return val !== null; 89 case "number": 90 case "boolean": 91 return true; 92 default: 93 return false; 94 } 95 }
33 export function isSet(obj) { 34 return is(obj, 'Set'); 35 }
13 function isSet (val) { 14 return typeof val !== 'undefined' && val !== null; 15 }