array_filter

Description

Method array_filter:Object (
     inputArray:Object,
     fn:function:Byte(o:Object)
)

Filter the contents of an array using a callback function.

Description

Parameters

inputArray

The array to filter.

fn

Callback function that should take a single element. If the element can be included in the result, the function should return true.

Return Values

A new array containing filtered elements from inputArray