Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in and splatted array #1354

Closed
satyr opened this issue May 12, 2011 · 2 comments
Closed

in and splatted array #1354

satyr opened this issue May 12, 2011 · 2 comments

Comments

@satyr
Copy link
Collaborator

satyr commented May 12, 2011

$ coffee -e 'a = [6, 9]; console.log 9 in [3, a...]'
false

$ coffee -bpe 'a in [b, c...]'
a === b || a === c;
@TrevorBurnham
Copy link
Collaborator

Nice catch. Should be easy to fix, since

_arr = [b, c...]
a in _arr

works.

@jashkenas
Copy link
Owner

Thanks, @satyr -- fixed in the above commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants