Licence
MIT
Version
1.0.0
Deps
1
Vulns
0
Weekly
0
is-functor
Check if looks like a functor (implments map).
Installation
$ npm install @f/is-functor
Usage
var isFunctor = require('@f/is-functor')
isFunctor([]) // => true
isFunctor({}) // => false
isFunctor(Object.create({map: function () {}})) // => true
API
isFunctor(ob)
obj- object to check
Returns: boolean indicating whether obj is a functor
License
MIT