No Description
alejandro.alvarez5 70bb213259 articulo 3 years ago
..
LICENSE articulo 3 years ago
README.md articulo 3 years ago
index.js articulo 3 years ago
package.json articulo 3 years ago
test.js articulo 3 years ago

README.md

objectorarray

npm version downloads

Is the value an object or an array but not null or RegExp?

Install

  $ yarn add objectorarray

Usage

 import objectorarray from 'objectorarray'

True

All of the following return true:

  objectorarray({})
  objectorarray([])  
  objectorarray(Object.create({}))
  objectorarray(Object.create(Object.prototype))
  objectorarray(Object.create(null))
  objectorarray(new Foo)

False

All of the following return false:

  objectorarray()
  objectorarray(function () {})
  objectorarray(1)
  objectorarray(/foo/)
  objectorarray(undefined)
  objectorarray(null)

License

MIT