Skip to content

2 functions that check if passed argument is or is not an object. Null is not considered an object.

License

Notifications You must be signed in to change notification settings

writetome51/is-object-not-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isObject(arg): boolean

Returns true if arg is array or object.
Returns false if arg is null.

notObject(arg): boolean

Returns true if arg is anything other than array or object.
Returns true if arg is null.

Installation

npm i @writetome51/is-object-not-object

Loading

import { isObject, notObject } from '@writetome51/is-object-not-object';

About

2 functions that check if passed argument is or is not an object. Null is not considered an object.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published