Repositorio del curso CCOM4030 el semestre B91 del proyecto kilometro0
Luis f4296bcada project initialized 5 gadus atpakaļ
..
LICENSE project initialized 5 gadus atpakaļ
README.md project initialized 5 gadus atpakaļ
index.js project initialized 5 gadus atpakaļ
package.json project initialized 5 gadus atpakaļ
test.js project initialized 5 gadus atpakaļ
yarn.lock project initialized 5 gadus atpakaļ

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