Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

_.isUndefined

/** 
* _.isUndefined()
* It checks if the parameter passed to it is undefined or not.
* If the parameter passed is undefined 
* it return true otherwise it returns false.
**/
import * as _ from 'underscore'
let value = null
console.log(_.isUndefined(value))
// Output: false
value = undefined
console.log(_.isUndefined(value))
// Output: true
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+7 =