list-missing-entries

1.0.0 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i list-missing-entries

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.6 kB

Total Files

3

Last publish

Collaborators

  • 3derekmason