JSFiddle - React, Tailwind, and code Playground
by Chase Wilson
JavaScript
function protofy () {
var args = Array.prototype.slice.call(arguments)
function xtend ( one, two, k ) {
for (k in two) one[k] = two[k]; return one
}
return (function objectify (obj) {
obj = args.shift()
return args.length ? xtend( Object.create( objectify() ), obj ) : obj
}())
}
console.dir(protofy({one:1},{two:2},{three:3}))
console.dir(_.extend({one:1},{two:2},{three:3}))