Skip to content

Bug in vrgs function? #17

@gregjacobs

Description

@gregjacobs

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 ")"

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions