map

Functional map

Usage no npm install needed!

<script type="module">
  import map from 'https://cdn.skypack.dev/map';
</script>

README

Map

Usage

const map = require('map')
const increment = map(a => a + 1)
const list = [1, 2, 3]

const incrementedList = increment(list)
// => [2, 3, 4]