UNPKG

cytoscape-popper

Version:
12 lines (9 loc) 320 B
// Simple, internal Object.assign() polyfill for options objects etc. module.exports = Object.assign != null ? Object.assign.bind(Object) : function (tgt, ...srcs) { srcs.forEach(src => { if (src !== null && src !== undefined) { Object.keys(src).forEach(k => tgt[k] = src[k]); } }); return tgt; };