Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var MultiMap = require('multimap'),
merge = require('flat-merge');
var requestIdleCallback = global.requestIdleCallback || global.requestAnimationFrame || global.setTimeout;
MultiMap.Map = Map;
function each(value, fn){
if(!value || typeof value !== 'object'){
return;
}
if(Array.isArray(value)){
for(var i = 0; i < value.length; i++){
fn(value[i], i)
}
}else{
for(var key in value){
fn(value[key], key);
}
}
}