added unit testing, and started implementing unit tests...phew
This commit is contained in:
11
node_modules/@sinonjs/samsam/lib/is-nan.js
generated
vendored
Normal file
11
node_modules/@sinonjs/samsam/lib/is-nan.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
function isNaN(value) {
|
||||
// Unlike global isNaN, this avoids type coercion
|
||||
// typeof check avoids IE host object issues, hat tip to
|
||||
// lodash
|
||||
var val = value; // JsLint thinks value !== value is "weird"
|
||||
return typeof value === "number" && value !== val;
|
||||
}
|
||||
|
||||
module.exports = isNaN;
|
Reference in New Issue
Block a user