is-strictly-object
v6.0.0
Published
Checks if a value is strictly an object, not array, not null or also not a Date object
Downloads
5
Maintainers
Readme
is-strictly-object
Checks if a value is strictly an object, not array, not null or also not a Date object
Install
npm install is-strictly-object
Usage
import { isStrictlyObject } from 'is-strictly-object';
console.log(isStrictlyObject('bob!'));
// false
console.log(isStrictlyObject([1, '2']));
// false
console.log(isStrictlyObject(null));
// false
console.log(isStrictlyObject(new Date()));
// false
console.log(isStrictlyObject({ who: 'mom' }));
// true
API
isStrictlyObject(value)
value
Type: any