UNPKG

@ahsolo/lotide

Version:

lotide assignment for Lighthouse Labs coding bootcamp

11 lines (9 loc) 231 B
const words = ["ground", "control", "to", "major", "tom"]; const map = function(array, callback) { const results = []; for (let item of array) { results.push(callback(item)); } return results; }; module.exports = map;