How do I splat across objects without using ECMA6 features?
function can(arg0, arg1) { return arg0 + arg1; } function foo(bar, haz) {
Object.create
function foo(bar, haz) { this.bar = bar; this.haz = haz; } x = Object.create(foo.prototype); myArgs = [5,6]; foo.apply(x, myArgs); console.log(x.bar);