-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
Description
On line 25 (https://github.com/anywhichway/nano-memoize/blob/master/index.js#L25), the code reads:
return i>=0 && i<s.indexOf(")" || s.indexOf("arguments")>=0);
// ^-- missing end parenthesis?
The inner expression as it is currently written (")" || s.indexOf("arguments")>=0
) will always evaluate to ")"