js-object-tools
TypeScript icon, indicating that this package has built-in type declarations

0.14.8 • Public • Published

js-object-tools Build Status Coverage Status

NPM

check

test the type of a JS primitive without the usual bs between dates and objects, or strings and numbers

for example

check(new Date(), Object);
// returns false
check('0', Number);
// returns false
check(0, Number);
// returns true
check(0, undefined);
// returns false

diff

Some helpful methods for diff, merge, clone, flatten, etc ...

see test folder for examples

Readme

Keywords

none

Package Sidebar

Install

npm i js-object-tools

Weekly Downloads

4

Version

0.14.8

License

none

Last publish

Collaborators

  • 1e1f