source: frontend/node_modules/core-js/internals/map-iterate.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 606 bytes
Line 
1'use strict';
2var uncurryThis = require('../internals/function-uncurry-this');
3var iterateSimple = require('../internals/iterate-simple');
4var MapHelpers = require('../internals/map-helpers');
5
6var Map = MapHelpers.Map;
7var MapPrototype = MapHelpers.proto;
8var forEach = uncurryThis(MapPrototype.forEach);
9var entries = uncurryThis(MapPrototype.entries);
10var next = entries(new Map()).next;
11
12module.exports = function (map, fn, interruptible) {
13 return interruptible ? iterateSimple({ iterator: entries(map), next: next }, function (entry) {
14 return fn(entry[1], entry[0]);
15 }) : forEach(map, fn);
16};
Note: See TracBrowser for help on using the repository browser.