|
@@ -6,6 +6,19 @@ if ( Number.EPSILON === undefined ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+if ( Number.isInteger === undefined ) {
|
|
|
+
|
|
|
+ // Missing in IE
|
|
|
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
|
|
|
+
|
|
|
+ Number.isInteger = function ( value ) {
|
|
|
+
|
|
|
+ return typeof value === 'number' && isFinite( value ) && Math.floor( value ) === value;
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
//
|
|
|
|
|
|
if ( Math.sign === undefined ) {
|
|
@@ -22,7 +35,7 @@ if ( Math.sign === undefined ) {
|
|
|
|
|
|
if ( Function.prototype.name === undefined ) {
|
|
|
|
|
|
- // Missing in IE9-11.
|
|
|
+ // Missing in IE
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name
|
|
|
|
|
|
Object.defineProperty( Function.prototype, 'name', {
|
|
@@ -39,7 +52,7 @@ if ( Function.prototype.name === undefined ) {
|
|
|
|
|
|
if ( Object.assign === undefined ) {
|
|
|
|
|
|
- // Missing in IE.
|
|
|
+ // Missing in IE
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
|
|
|
|
|
|
( function () {
|