package.internals.map-iterate.js Maven / Gradle / Ivy
'use strict';
var iterateSimple = require('../internals/iterate-simple');
module.exports = function (map, fn, interruptible) {
return interruptible ? iterateSimple(map.entries(), function (entry) {
return fn(entry[1], entry[0]);
}, true) : map.forEach(fn);
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy