Skip to content

micro-js/map-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Map array.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •