JavaScript helper for transformating array.
$ npm test
$ npm run compile
$ npm run clean
In a browser:
<script src="node_modules/jsmp-infra-transform-array-helper/dist/index.js"></script>
Using npm:
$ npm i
$ npm i -S jsmp-infra-transform-array-helper
In Node.js:
const arrayTranformer = require('jsmp-infra-transform-array-helper');
Accepts array of numbers and transform every number according to choosen action. Returns transformed array.
(transformArray([1, 2, 3], 'doubles'); // [2, 4, 6];