JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 57391061
  • Score
    100M100P100Q234701F

Return `true` if the given `value` is an object created by the `Object` constructor.

Package Exports

  • is-plain-object
  • is-plain-object/index

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-plain-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-plain-object NPM version

Return true if the given value is an object created by the Object constructor.

Install

npm

npm i is-plain-object --save

Run tests

npm test

Usage

var isPlainObject = require('is-plain-object');

isPlainObject(1);
//=> false

isPlainObject(['foo', 'bar']);
//=> false

isPlainObject([]);
//=> false

isPlainObject(new Foo);
//=> false

isPlainObject(null);
//=> false

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

isPlainObject(Object.create({}));
//=> true

isPlainObject({foo: 'bar'});
//=> true

isPlainObject({});
//=> true

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on September 21, 2014.