npm.io
1.1.0 • Published 4 years ago

map-implementation

Licence
MIT
Version
1.1.0
Deps
2
Size
4 kB
Vulns
1
Weekly
0
Stars
1

Map Implementation

Author Used Technologies Status PRs License


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.