{{alias}}( x, fcn[, thisArg] ) Invokes a callback function once for each ndarray element. The callback function is provided the following arguments: - value: current array element. - indices: current array element indices. - arr: the input ndarray. Parameters ---------- x: ndarray Input ndarray. fcn: Function Callback function. thisArg: any (optional) Callback function execution context. Examples -------- > var x = {{alias:@stdlib/ndarray/array}}( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ); > function f( v ) { if ( v !== v ) { throw new Error( '...' ); } }; > {{alias}}( x, f ); See Also --------