@bemoje/is-plain-object

1.0.2 • Public • Published

@bemoje/is-plain-object

True if value is a plain object.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

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

Usage

import isPlainObject from '@bemoje/is-plain-object'

isPlainObject({})
//=> true

isPlainObject({ a: 1 })
//=> true

isPlainObject(Object.create(null))
//=> false

isPlainObject(/regex/)
//=> false

Tests

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

npm run test

API

Table of Contents

isPlainObject

True if value is a plain object.

Parameters
  • value any The value to evaluate

Returns boolean boolean

/@bemoje/is-plain-object/

    Package Sidebar

    Install

    npm i @bemoje/is-plain-object

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    8.47 kB

    Total Files

    5

    Last publish

    Collaborators

    • bemoje