Skip to content

flbeta_function_map

Wesley de Groot edited this page Nov 5, 2017 · 35 revisions
                     _          
                    (_)         
                     _    _____ 
                    | |  / ____|
                    | |  | (___ 
                _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                     v0.1.0 Beta

Function map

_.map(arr, callbackInt)



Walk trough the array, and perform a function


🌍 Universal function

This function is for the Command Line Interface and Websites!


Parameter list

Type @var Description Required
object [object] Wrapper Optional
array arr Array to parse Required
function callbackInt Callback function to call Required

Example:

_.map(['a', 'b', 'c'], function (i, v) { window.alert('item ' + i + ', value: ' + v);})


Returns:

array




[Back to function list](https://github.com/wdg/_.js/wiki/Function%20List%20(Beta))
Clone this wiki locally