I came across this snippet in kriskowal/q:
/**
* Applies the promised function in a future turn.
* @param object promise or immediate reference for target function
* @param args array of application arguments
*/
Q.fapply = fapply;
function fapply(value, args) {
return dispatch(value, "apply", [void 0, args]);
}
What is the point of using the void keyword? Why not just write [undefined, args]
?