Luis f4296bcada project initialized | 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