arvin.torres e3ca5d94a7 Campanas de Paz para la Mujer | 5 years ago | |
---|---|---|
.. | ||
LICENSE | 5 years ago | |
README.md | 5 years ago | |
index.js | 5 years ago | |
package.json | 5 years ago | |
test.js | 5 years ago | |
yarn.lock | 5 years ago |
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