Share your code.
get-nans
get-nans 
JavaScript should only have one distinguishable NaN value. However, some engines violate this, and have at least two.
This module returns an array of all the NaNs it knows how to detect on the current engine.
Current known failures:
node(v0.6-v0.12)io.js(v1.0-v2.2)- Chrome (
v43-v45, at least) - Firefox (
v38-v41, at least) - Internet Explorer (
v10,v11)
Example
var getNaNs = ;var assert = ; var nans = ;assert;Relevant links
- https://esdiscuss.org/topic/observability-of-nan-distinctions-is-this-a-concern
- https://bugs.webkit.org/show_bug.cgi?id=53598
- https://code.google.com/p/v8/issues/detail?id=1101
- https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-number-type - see "Note"
Tests
Simply clone the repo, npm install, and run npm test

