arvin.torres e3ca5d94a7 Campanas de Paz para la Mujer | 5 年前 | |
---|---|---|
.. | ||
LICENSE | 5 年前 | |
README.md | 5 年前 | |
index.js | 5 年前 | |
package.json | 5 年前 | |
test.js | 5 年前 | |
yarn.lock | 5 年前 |
Is the value an object or an array but not null or RegExp?
$ yarn add objectorarray
import objectorarray from 'objectorarray'
All of the following return true:
objectorarray({})
objectorarray([])
objectorarray(Object.create({}))
objectorarray(Object.create(Object.prototype))
objectorarray(Object.create(null))
objectorarray(new Foo)
All of the following return false:
objectorarray()
objectorarray(function () {})
objectorarray(1)
objectorarray(/foo/)
objectorarray(undefined)
objectorarray(null)
MIT