3 ms·
Yes, version 1 is using closures which creates a new function every time the function is called. I've seen this pattern in many places and even used it myself :
by sorenso 12y ago
Yes, version 1 is using closures which creates a new function every time the function is called. I've seen this pattern in many places and even used it myself :)
-sorenso-