1.0.0 • Published 2 years ago

list-missing-entries v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

list-missing-entries

listMissingEntries(object);

Returns a count and list of any falsey fields in an object.

Npm package

Github repo

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!