Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash isEmpty

Arguments
value (any): The value to check.
Returns
(boolean): Returns true if value is empty, else false.

_.isEmpty(null);
// => true
 
_.isEmpty(true);
// => true
 
_.isEmpty(1);
// => true
 
_.isEmpty([1, 2, 3]);
// => false
 
_.isEmpty({ 'a': 1 });
// => false
Source by lodash.com #
 
PREVIOUS NEXT
Tagged: #lodash #isEmpty
ADD COMMENT
Topic
Name
7+8 =