isnonnullobject2
v1.0.0
Published
Check if a value is a non-null object.
Downloads
73
Readme
isnonnullobject2
Check if the given value is a non-null object.
Install
npm install is-non-null-object
Usage
Syntax
isNonNullObject(value);
value
- Type:
*
- The value to check.
- Type:
(return value)
- Type:
Boolean
- Returns
true
if the given value is a non-null object, elsefalse
.
- Type:
Examples
import isNonNullObject from 'isnonnullobject2';
isNonNullObject({});
// > true
isNonNullObject([]);
// > true
isNonNullObject(null);
// > false
isNonNullObject('');
// > false