@f/is-functor

Check if looks like a functor (implments map).

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/is-functor
001.0.06 years ago6 years agoMinified + gzip package size for @f/is-functor in KB

Readme

is-functor

Build status Git tag NPM version Code style

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.