UNPKG

@nknahom/lotide

Version:

Lotide is mini clone of the Lodash (https://lodash.com) library for learning JavaScript. What is Lodash? Lodash is a library that makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc.

10 lines (8 loc) 167 B
const map = (array, callback) => { const results = []; for (let item of array) { results.push(callback(item)); } return results; }; module.exports = map;