Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

empty_object-array-string

gokultp084MIT1.1.0

npm publish test

is-empty, empty object, empty array, empty string, deep empty check, check empty

readme

Returns true if every value is either undefined or null or zero or empty string.

const testData1 = { 'name': 'test-name', 'id': undefined }

const testData2 = { 'name': '', 'id': 0 }

const testData3 = { 'name': '', 'id': 0, 'nicknames': [null, undefined] }

const testData4 = { 'name': '', 'id': 0, 'nicknames': [testData1] }

console.log(empty_object.is_empty_object(testData1)) //false console.log(empty_object.is_empty_object(testData2)) //true console.log(empty_object.is_empty_object(testData3)) //true console.log(empty_object.is_empty_object(testData4)) //false