Comparing version 0.1.1 to 0.1.2
/*! | ||
* is-odd <https://github.com/jonschlinkert/is-odd> | ||
* | ||
* Copyright (c) 2015, Jon Schlinkert. | ||
* Licensed under the MIT License. | ||
* Copyright (c) 2015-2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
@@ -16,3 +16,6 @@ | ||
} | ||
if (Number(i) !== Math.floor(i)) { | ||
throw new RangeError('is-odd expects an integer.'); | ||
} | ||
return !!(~~i & 1); | ||
}; |
{ | ||
"name": "is-odd", | ||
"description": "Returns true if the given number is odd.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/jonschlinkert/is-odd", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"contributors": [ | ||
"Dmitry Semigradsky (http://brainstorage.me/semigradsky)", | ||
"Jon Schlinkert (http://twitter.com/jonschlinkert)" | ||
], | ||
"repository": "jonschlinkert/is-odd", | ||
@@ -23,3 +27,3 @@ "bugs": { | ||
"dependencies": { | ||
"is-number": "^1.1.0" | ||
"is-number": "^3.0.0" | ||
}, | ||
@@ -26,0 +30,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
4659
17
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-number@3.0.0(transitive)
+ Addedkind-of@3.2.2(transitive)
- Removedis-number@1.1.2(transitive)
Updatedis-number@^3.0.0