The object to be checked for empty values.
An optional array of keys to check for empty values. Default is an empty array.
const payload = { id: 2, name: "John", address: { city: "bangalore" } }
console.log(checkObject(payload, ["iddas"]));// false
console.log(checkObject(payload, ["name"]));// true
console.log(checkObject(payload, ["address.city"]));// true
Generated using TypeDoc
Checks the object, if any one key's value is empty it returns false.