.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / web.dom-collections.for-each.js
1 var global = require('../internals/global');
2 var DOMIterables = require('../internals/dom-iterables');
3 var forEach = require('../internals/array-for-each');
4 var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
5
6 for (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 }