nl_tokens: ISFINITE // FUNCTION : isfinite ( arr ) Computes for each array element whether an element is a finite number .
pl_tokens: function isfinite ( arr ) { if ( ! Array . isArray ( arr ) ) { throw new TypeError ( 'isfinite()::invalid input argument. Must provide an array.' ) ; } var len = arr . length , out = <mask> Array ( len ) , val ; for ( var i = 0 ; i < len ; i ++ ) { out [ i ] = 0 ; val = arr [ i ] ; if ( typeof val === 'number' && val === val && val < pinf && val > ninf ) { out [ i ] = 1 ; } } return out ; }