executeBound on var arg constructors
Author: megawacCreated Jun 12, 2015Updated Mar 8, 2026
As mentioned earlier (#2199), exectueBound doesn't support all of Function.prototype.bind cases on constructors which take variable arguments. As the main implementation of bind no longer uses the native implementation, it's important we fix it.
Lodash currently supports these cases.
var D = _.bind(Date, null, 2015, 05)
new D(10);Source: jashkenas/underscore