2.1.2 • Published 5 years ago

is-plain-object-x v2.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 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

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

7 years ago