This project is a simple implementation of the map array method. Also, this project is my first npm package, and first experience with esbuild.
To develop this app, I used these technologies:
- Typescript
- Jest for testing
- Implementation of the map method
Run yarn add map-implementation
to install the package.
Then:
import { _map } from 'map-implementation';
const numArray = [5, 10, 15];
const doubledArray = _map<number, number>(
numArray,
(val, index, source) => val * 2
);
console.log(doubledArray); // 10, 20, 30
This project is under license. Click here for details.