js-object-tools
v0.14.8
Published
various json utils
Downloads
25
Readme
js-object-tools
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