▲ | kentonv 4 days ago | |||||||||||||||||||||||||||||||
.map() is totally special-cased. For any other function accepting a callback, the function on the server will receive an RPC stub, which, when called, makes an RPC back to the caller, calling the original version of the function. This is usually what you want, and the semantics are entirely normal. But for .map(), this would defeat the purpose, as it'd require an additional network round-trip to call the callback. | ||||||||||||||||||||||||||||||||
▲ | qcnguy 4 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
What about filter? Seems useful also. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | svieira 4 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||
Doesn't this apply for _all_ the combinators on `Array.prototype` though? Why special-case `.map` only? | ||||||||||||||||||||||||||||||||
|