Skip to content

function_map

Wesley de Groot edited this page Oct 23, 2015 · 31 revisions
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/

Function map

_('.wrapper').map(arr,callback_int)


Walk trough the array, and perform a function

  • @param object [object] Wrapper
  • @param array arr Array to parse
  • @param function callback_int Callback function to call
  • @return array
  • @example _.map(['a','b','c'], function(i,v){alert('item '+i+', value: '+v);});


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