index.js
/**
 * map: It will take an collection of an array or object. The function will call upon it's elements. This function will 
 * push the new modified element into a new array.
 * 
 * @param {Array or Object} collection: an array or object which its elements will be used
 * @param {function} callback: function that will do something a give back another value
 * 
 * @return {Array}: The callback function element will be pushed into an new array
 * 
 */
It will take an collection of an array or object. The function will call upon it's elements. This function will
push the new modified element into a new array.

@param {Array or Object} collection: an array or object which its elements will be used
@param {function} callback: function that will do something a give back another value

@return {Array}: The callback function element will be pushed into an new array
It will take an collection of an array or object . The function will call upon it ' s elements . This function will push the new modified element into a new array . @param { Array or Object } collection : an array or object which its elements will be used @param { function } callback : function that will do something a give back another value @return { Array } : The callback function element will be pushed into an new array
function map(collection, callback){
 const mapArr = [];
each(collection, function(element, index, collection){
    mapArr.push(callback(element, index, collection));
});
return mapArr;
}
function map ( collection , callback ) { const mapArr = [ ] ; each ( collection , function ( element , index , collection ) { mapArr . push ( callback ( element , index , collection ) ) ; } ) ; return mapArr ; }
map: It will take an collection of an array or object.
map : It will take an collection of an array or object .