each()
method in jQuery contains such a statement:
callback.call( value, i, value )
I couldn't understand what this statement means exactly.
I know what callback
and call
mean but I couldn't get the arguments of the function call: (value,i,value)
. What does this mean?
The statement is used in a for block of each()
but my question is independent of that context.
from the jQuery source:
for ( var value = object[0];
i < length &&
callback.call( value, i, value ) // <=== LOOK!
!== false;
value = object[++i] ) {}