is-non-null-object

Check if the given value is a non-null object.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-non-null-object
1.0.05 years ago5 years agoMinified + gzip package size for is-non-null-object in KB

Readme

is-non-null-object
Build Status Coverage Status Downloads Version
Check if the given value is a non-null object.

Main

dist/
├── is-non-null-object.js        (UMD)
├── is-non-null-object.min.js    (UMD, compressed)
├── is-non-null-object.common.js (CommonJS, default)
└── is-non-null-object.esm.js    (ES Module)

Install

npm install is-non-null-object

Usage

Syntax

isNonNullObject(value);

  • value
- Type: * - The value to check.
  • (return value)
- Type: Boolean - Returns true if the given value is a non-null object, else false.

Examples

import isNonNullObject from 'is-non-null-object';

isNonNullObject({});
// > true

isNonNullObject([]);
// > true

isNonNullObject(null);
// > false

isNonNullObject('');
// > false

License

MIT © Chen Fengyuan