@f/is-functor
v1.0.0
Published
Check if looks like a functor (implments map).
Readme
is-functor
Check if looks like a functor (implments map).
Installation
$ npm install @f/is-functorUsage
var isFunctor = require('@f/is-functor')
isFunctor([]) // => true
isFunctor({}) // => false
isFunctor(Object.create({map: function () {}})) // => trueAPI
isFunctor(ob)
obj- object to check
Returns: boolean indicating whether obj is a functor
License
MIT
