- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
17 lines
606 B
JavaScript
17 lines
606 B
JavaScript
'use strict';
|
|
var uncurryThis = require('../internals/function-uncurry-this');
|
|
var iterateSimple = require('../internals/iterate-simple');
|
|
var MapHelpers = require('../internals/map-helpers');
|
|
|
|
var Map = MapHelpers.Map;
|
|
var MapPrototype = MapHelpers.proto;
|
|
var forEach = uncurryThis(MapPrototype.forEach);
|
|
var entries = uncurryThis(MapPrototype.entries);
|
|
var next = entries(new Map()).next;
|
|
|
|
module.exports = function (map, fn, interruptible) {
|
|
return interruptible ? iterateSimple({ iterator: entries(map), next: next }, function (entry) {
|
|
return fn(entry[1], entry[0]);
|
|
}) : forEach(map, fn);
|
|
};
|