listMissingEntries(object);
Returns a count and list of any falsey fields in an object.
npm install list-missing-entries
import listMissingEntries from "list-missing-entries";
object
- Any object of data that could potentially have an empty value.
By default will return the number missing fields and a stringified array of all missing elements.
If listMissingEntries is given an input that isn't an object and error message will return.
Thanks for reading!