1.1.0 • Published 10 years ago

@micro-js/map-array v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

map-array

Build status Git tag NPM version Code style

Map array.

Installation

$ npm install @micro-js/map-array

Usage

var map = require('@micro-js/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

1.1.0

10 years ago

1.0.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago