2.1.2 • Published 6 years ago

is-plain-object-x v2.1.2

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

is-plain-object-x

Tests if a value is a plain object.

module.exportsboolean

This method tests if value is a plain object, that is, an object created by the Object constructor or one with a [[Prototype]] of null.

Kind: Exported member
Returns: boolean - True if a plain object, otherwise false.

ParamTypeDescription
value*The value to test.

Example

import isPlainObject from 'is-plain-object-x';

function Foo() {
  this.a = 1;
}

isPlainObject(new Foo()); // => false
isPlainObject([1, 2, 3]); // => false
isPlainObject({x: 0, y: 0}); // => true
isPlainObject(Object.create(null)); // => true
2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

8 years ago