Skip to content

compute isnan

kgryte edited this page May 12, 2015 · 1 revision

Computes for each array element whether an element is NaN. The function returns an array with length equal to that of the input array. Each output array element is either 0 or 1. A value of 1 means that an element is NaN and 0 means that an element is not NaN.

var out = compute.isnan( [ 2, '3', 5, 4, null ] );
// returns [ 0, 1, 0, 0, 1 ]
Clone this wiki locally