←
^
→
JavaScript
apply and call
Used to invoke a function
f
as if
it were a method of object
o
.
f.call(o,1,2)
f.apply(o,[1,2])
the same but arguments in list.
José M. Vidal
.
45 of 65