If I have a JavaScript function and I want to call it by passing a list of arguments, I use apply :
var x = f(1,2,3);
var x = f.apply(null, [1,2,3]);
For the first time, I came across a case where I need to call a constructor with a...
asked by
15.09.2015 / 08:10