Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/writetome51/is-object-not-object
2 functions that check if passed argument is or is not an object. Null is not considered an object.
https://github.com/writetome51/is-object-not-object
is-object javascript not-object type-check
Last synced: about 16 hours ago
JSON representation
2 functions that check if passed argument is or is not an object. Null is not considered an object.
- Host: GitHub
- URL: https://github.com/writetome51/is-object-not-object
- Owner: writetome51
- License: mit
- Created: 2019-04-05T18:58:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T18:05:49.000Z (over 4 years ago)
- Last Synced: 2024-11-08T22:39:23.179Z (about 2 months ago)
- Topics: is-object, javascript, not-object, type-check
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```js
import { isObject, notObject } from '@writetome51/is-object-not-object';
```