list-missing-entries
v1.0.0
Published
List potentially missing data fields
Downloads
4
Readme
list-missing-entries
listMissingEntries(object);
Returns a count and list of any falsey fields in an object.
Installation
npm install list-missing-entries
Usage
import listMissingEntries from "list-missing-entries";
- Inputs -
object
- Any object of data that could potentially have an empty value.
- Outputs -
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!