Uint32Array.prototype.filter

Returns a new typed array from the elements of the given typed array that meet the condition specified in a callback function.

Syntax

filter(predicate, thisArg?)

Parameters

Return value

New array after filtering.

Examples

new Uint32Array([1, 2, 3, 4, 5]).filter(x => x != 0 && x % 2 == 0)
Uint32Array [2, 4]