Class: shaka.util.Iterables

Constructor

new Iterables()

Source:

Methods

(static) every(iterablenon-null, test) → {boolean}

Parameters:
Name Type Description
iterable Iterable.<T>
test function(T):boolean
Source:
Returns:
Type
boolean

(static) filter(iterablenon-null, filter) → (non-null) {Array.<T>}

Iterate over an iterable object and return only the items that |filter| returns true for.
Parameters:
Name Type Description
iterable Iterable.<T>
filter function(T):boolean
Source:
Returns:
Type
Array.<T>

(static) map(iterablenon-null, mapping) → (non-null) {Iterable.<TO>}

Parameters:
Name Type Description
iterable Iterable.<FROM>
mapping function(FROM):TO
Source:
Returns:
Type
Iterable.<TO>

(static) some(iterablenon-null, test) → {boolean}

Parameters:
Name Type Description
iterable Iterable.<T>
test function(T):boolean
Source:
Returns:
Type
boolean