UNPKG

faye

Version:

Simple pub/sub messaging for the web

17 lines (12 loc) 338 B
'use strict'; var forEach = Array.prototype.forEach, hasOwn = Object.prototype.hasOwnProperty; module.exports = function(target) { forEach.call(arguments, function(source, i) { if (i === 0) return; for (var key in source) { if (hasOwn.call(source, key)) target[key] = source[key]; } }); return target; };