TinyMCE:API/tinymce/map

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: map

Summary

Creates a new array by the return value of each iteration function call. This enables you to convert one array list into another.

Syntax

<Array> map(<Array> a, <function> f)

Parameters

a
Array of items to iterate.
f
Function to call for each item. It's return value will be the new value.

Returns

Array with new values based on function return values.

Personal tools