66 - Array.prototype.find
77*/
88if ( typeof Object . assign !== 'function' ) {
9- ( function ( ) {
10- Object . assign = function ( target ) {
9+ ( function ( ) {
10+ Object . assign = function ( target ) {
1111 if ( target === undefined || target === null ) {
1212 throw new TypeError ( 'Cannot convert undefined or null to object' ) ;
1313 }
@@ -30,7 +30,7 @@ if (typeof Object.assign !== 'function') {
3030
3131if ( ! Array . prototype . find ) {
3232 Object . defineProperty ( Array . prototype , 'find' , {
33- value : function ( predicate ) {
33+ value : function ( predicate ) {
3434 if ( this === null ) {
3535 throw new TypeError ( 'Array.prototype.find called on null or undefined' ) ;
3636 }
@@ -55,7 +55,7 @@ if (!Array.prototype.find) {
5555
5656if ( ! Array . prototype . findIndex ) {
5757 Object . defineProperty ( Array . prototype , 'findIndex' , {
58- value : function ( predicate , thisArg ) {
58+ value : function ( predicate , thisArg ) {
5959 if ( this === null ) {
6060 throw new TypeError ( 'Array.prototype.find called on null or undefined' ) ;
6161 }
@@ -82,7 +82,7 @@ export function pollyfillElementsFromPoint() {
8282 if ( document . elementsFromPoint ) return document . elementsFromPoint ;
8383 if ( document . msElementsFromPoint ) return document . msElementsFromPoint ;
8484
85- var usePointer = ( function ( ) {
85+ var usePointer = ( function ( ) {
8686 var element = document . createElement ( 'x' ) ;
8787 element . style . cssText = 'pointer-events:auto' ;
8888 return element . style . pointerEvents === 'auto' ;
@@ -96,7 +96,7 @@ export function pollyfillElementsFromPoint() {
9696 ? '* { pointer-events: all }'
9797 : '* { visibility: visible }' ;
9898
99- return function ( x , y ) {
99+ return function ( x , y ) {
100100 var current , i , d ;
101101 var elements = [ ] ;
102102 var previousPointerEvents = [ ] ;
@@ -153,7 +153,7 @@ if (typeof window.addEventListener === 'function') {
153153
154154if ( ! Array . prototype . includes ) {
155155 Object . defineProperty ( Array . prototype , 'includes' , {
156- value : function ( searchElement ) {
156+ value : function ( searchElement ) {
157157 var O = Object ( this ) ;
158158 var len = parseInt ( O . length , 10 ) || 0 ;
159159 if ( len === 0 ) {
@@ -190,7 +190,7 @@ if (!Array.prototype.includes) {
190190// Reference: http://es5.github.io/#x15.4.4.17
191191if ( ! Array . prototype . some ) {
192192 Object . defineProperty ( Array . prototype , 'some' , {
193- value : function ( fun ) {
193+ value : function ( fun ) {
194194 if ( this == null ) {
195195 throw new TypeError ( 'Array.prototype.some called on null or undefined' ) ;
196196 }
@@ -216,14 +216,14 @@ if (!Array.prototype.some) {
216216
217217if ( ! Array . from ) {
218218 Object . defineProperty ( Array , 'from' , {
219- value : ( function ( ) {
219+ value : ( function ( ) {
220220 var toStr = Object . prototype . toString ;
221- var isCallable = function ( fn ) {
221+ var isCallable = function ( fn ) {
222222 return (
223223 typeof fn === 'function' || toStr . call ( fn ) === '[object Function]'
224224 ) ;
225225 } ;
226- var toInteger = function ( value ) {
226+ var toInteger = function ( value ) {
227227 var number = Number ( value ) ;
228228 if ( isNaN ( number ) ) {
229229 return 0 ;
@@ -234,7 +234,7 @@ if (!Array.from) {
234234 return ( number > 0 ? 1 : - 1 ) * Math . floor ( Math . abs ( number ) ) ;
235235 } ;
236236 var maxSafeInteger = Math . pow ( 2 , 53 ) - 1 ;
237- var toLength = function ( value ) {
237+ var toLength = function ( value ) {
238238 var len = toInteger ( value ) ;
239239 return Math . min ( Math . max ( len , 0 ) , maxSafeInteger ) ;
240240 } ;
@@ -307,7 +307,7 @@ if (!Array.from) {
307307}
308308
309309if ( ! String . prototype . includes ) {
310- String . prototype . includes = function ( search , start ) {
310+ String . prototype . includes = function ( search , start ) {
311311 if ( typeof start !== 'number' ) {
312312 start = 0 ;
313313 }
@@ -329,7 +329,7 @@ if (!Array.prototype.flat) {
329329 return depth
330330 ? Array . prototype . reduce . call (
331331 this ,
332- function ( acc , cur ) {
332+ function ( acc , cur ) {
333333 if ( Array . isArray ( cur ) ) {
334334 acc . push . apply ( acc , flat . call ( cur , depth - 1 ) ) ;
335335 } else {
0 commit comments