Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
forEach(msg.links || [], function (link) {
var value = traverse.get(args, link.from);
traverse.set(args, link.to, value);
});
forEach(objectKeys(msg.callbacks || {}), function (sid) {
var id = parseInt(sid, 10);
var path = msg.callbacks[id];
traverse.set(args, path, f(id));
});