jPaq Docs -

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  777


Creates a new array of the same size, with each element being the value that is returned by the specified function.


  1. fnCallback => Function
    The function that will be called for each element within the original array. The first parameter passed will be the element to be examined. The second will be the index of the element. The third will be a reference to this array. This function should return the value that will stored in the corresponding index of the array that will be returned from the call to the map function.
  2. [objThis] => Object
    Optional. The object that is referred to by the "this" keyword within fnCallback.


The array of elements that are returned after calling the specified function for each element in the original array.