Answers for "how to check if an object is empty in javascript lodash"

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

Code answers related to "how to check if an object is empty in javascript lodash"

Browse Popular Code Answers by Language