Skip to content

function_map

Wesley de Groot edited this page Oct 30, 2015 · 31 revisions
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                    v0.0.6 Final

Function map

_.map(arr, callback_int)


Walk trough the array, and perform a function

Parameter list

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

Example:

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


Returns:

array




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