How can i do something like this:
var a = [1,2,3,4];
a.map(Date.constructor);
This code throws an Error on Google V8:
SyntaxError: Unexpected number
I'am also tried:
a.map(Date.constructor, Date.prototype)
with the same result.
How can i do something like this:
var a = [1,2,3,4];
a.map(Date.constructor);
This code throws an Error on Google V8:
SyntaxError: Unexpected number
I'am also tried:
a.map(Date.constructor, Date.prototype)
with the same result.