JSPM

is-pure-object

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5191
  • Score
    100M100P100Q124313F
  • License MIT

A simple object check

Package Exports

  • is-pure-object

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-pure-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-pure-object

A simple function that checks whether an object is actually a pure object.

const isObject = require('is-pure-object')

isObject({a: 1}) // true
isObject({}) // true
isObject({a: ['foo']}) // true

isObject(null) // false
isObject('foo') // false
isObject(['foo', 'bar']) // false
isObject(function() {}) // false

Installation

npm install --save is-pure-object

Test

npm test

License

MIT