Skip to content

Commit

Permalink
Merge pull request #4 from ungoldman/use-old-isnan
Browse files Browse the repository at this point in the history
Use old isNaN
  • Loading branch information
Flet authored May 15, 2017
2 parents 8e4ae6e + 9e5d79e commit f9f55cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = prettierBytes

function prettierBytes (num) {
if (typeof num !== 'number' || Number.isNaN(num)) {
if (typeof num !== 'number' || isNaN(num)) {
throw new TypeError('Expected a number, got ' + typeof num)
}

Expand Down

0 comments on commit f9f55cc

Please sign in to comment.