Answers for "lodash isEmpty for empty object"

0

lodash check if object is empty

var obj = {
  'firstName': undefined
, 'lastName' : undefined
};

console.log(_.isEmpty(obj)); // false
console.log(_.isEmpty({})); // true
Posted by: Guest on June-25-2021
0

lodash empty string

_.isEmpty(''); // => true
Posted by: Guest on July-18-2021

Browse Popular Code Answers by Language