source: trip-planner-front/node_modules/core-js/modules/web.dom-collections.for-each.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 691 bytes
Line 
1var global = require('../internals/global');
2var DOMIterables = require('../internals/dom-iterables');
3var forEach = require('../internals/array-for-each');
4var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
5
6for (var COLLECTION_NAME in DOMIterables) {
7 var Collection = global[COLLECTION_NAME];
8 var CollectionPrototype = Collection && Collection.prototype;
9 // some Chrome versions have non-configurable methods on DOMTokenList
10 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
11 createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
12 } catch (error) {
13 CollectionPrototype.forEach = forEach;
14 }
15}
Note: See TracBrowser for help on using the repository browser.