Skip to content

Commit

Permalink
fix(Number.isInteger) Add polyfill for Number.isInteger - #350
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-phillips-18 committed Aug 9, 2017
1 parent 8043e13 commit 5b88423
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@
return this;
}

// Polyfill for Number.isInteger (not supported in Internet Explorer 11 and earlier versions)
Number.isInteger = Number.isInteger || function(value) {
return typeof value === 'number' &&
isFinite(value) &&
Math.floor(value) === value;
};

URI.version = '1.18.11';

var p = URI.prototype;
Expand Down

0 comments on commit 5b88423

Please sign in to comment.