Comparing version 1.3.0 to 1.3.1
1.3.1 / 2014-11-10 | ||
================== | ||
* Number method checks. | ||
1.3.0 / 2014-11-10 | ||
@@ -3,0 +8,0 @@ ================== |
14
index.js
@@ -23,2 +23,6 @@ /**! | ||
function isNumber(attr) { | ||
return typeof attr === 'number'; | ||
} | ||
/** | ||
@@ -75,1 +79,11 @@ * Module dependencies. | ||
}; | ||
exports.Number = { | ||
isFinite: isFunction(Number.isFinite), | ||
isInteger: isFunction(Number.isInteger), | ||
isSafeInteger: isFunction(Number.isSafeInteger), | ||
isNaN: isFunction(Number.isNaN), | ||
EPSILON: isNumber(Number.EPSILON), | ||
MIN_SAFE_INTEGER: isNumber(Number.MIN_SAFE_INTEGER), | ||
MAX_SAFE_INTEGER: isNumber(Number.MAX_SAFE_INTEGER) | ||
}; |
{ | ||
"name": "enable", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Detect es6 features enable or not.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -101,2 +101,30 @@ enable | ||
if (Number.isFinite) { | ||
console.log('supports `Number.isFinite`'); | ||
} | ||
if (Number.isInteger) { | ||
console.log('supports `Number.isInteger`'); | ||
} | ||
if (Number.isSafeInteger) { | ||
console.log('supports `Number.isSafeInteger`'); | ||
} | ||
if (Number.isNaN) { | ||
console.log('supports `Number.isNaN`'); | ||
} | ||
if (Number.EPSILON) { | ||
console.log('supports `Number.EPSILON`'); | ||
} | ||
if (Number.MIN_SAFE_INTEGER) { | ||
console.log('supports `Number.MIN_SAFE_INTEGER`'); | ||
} | ||
if (Number.MAX_SAFE_INTEGER) { | ||
console.log('supports `Number.MAX_SAFE_INTEGER`'); | ||
} | ||
``` | ||
@@ -103,0 +131,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9022
73
168