(val: number)
| 342 | } |
| 343 | |
| 344 | export function isNegativeNaN(val: number): boolean { |
| 345 | if (!Number.isNaN(val)) { |
| 346 | return false |
| 347 | } |
| 348 | const f64 = new Float64Array(1) |
| 349 | f64[0] = val |
| 350 | const u32 = new Uint32Array(f64.buffer) |
| 351 | const isNegative = u32[1] >>> 31 === 1 |
| 352 | |
| 353 | return isNegative |
| 354 | } |
| 355 | |
| 356 | function toString(v: any) { |
| 357 | return Object.prototype.toString.call(v) |
no outgoing calls
no test coverage detected