1.1.0 • Published 2 years ago
map-implementation v1.1.0
Map Implementation
📕 About
This project is a simple implementation of the map array method. Also, this project is my first npm package, and first experience with esbuild.
⚒️ Used Technologies
To develop this app, I used these technologies:
- Typescript
- Jest for testing
✨ Features
- Implementation of the map method
⚙️ How to Use
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
🔓 License
This project is under license. Click here for details.