TinyMCE:API/tinymce/map
From Moxiecode Documentation Wiki
< TinyMCE:API | tinymce
Contents |
[edit]
Method: map
[edit]
Summary
Creates a new array by the return value of each iteration function call. This enables you to convert one array list into another.
[edit]
Syntax
<Array> map(<Array> a, <function> f)
[edit]
Parameters
- a
- Array of items to iterate.
- f
- Function to call for each item. It's return value will be the new value.
[edit]
Returns
Array with new values based on function return values.
