@f/map-array

Map array.

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/map-array
001.2.16 years ago6 years agoMinified + gzip package size for @f/map-array in KB

Readme

map-array

Build status Git tag NPM version Code style

Map array.

Installation

$ npm install @f/map-array

Usage

var map = require('@f/map-array')

map(addOne, [1, 2]) //  => [2, 3]

function addOne (v) {
  return v + 1
}

API

mapArray(fn, array)

  • fn - mapping function
  • array - array to map over

Returns: mapped array

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.