1.0.1 • Published 4 years ago

@bemoje/is-object v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@bemoje/is-object

Determine whether a value is an object or not.

Version

Travis CI

Dependencies

Stats

Donate

Installation

npm install @bemoje/is-object
npm install --save @bemoje/is-object
npm install --save-dev @bemoje/is-object

Usage

import isObject from '@bemoje/is-object'

isObject({})
//=> true

isObject(Object.create(null))
//=> true

isObject(new Object())
//=> true

isObject(new (class Custom {})())
//=> true

isObject([])
//=> false

isObject(null)
//=> false

isObject(undefined)
//=> false

isObject(void 0)
//=> false

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

Table of Contents

isObject

Determine whether a value is an object or not.

Parameters
  • value any a value

Returns boolean