-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix xor example #22
fix xor example #22
Conversation
f540231
to
3e8b611
Compare
@@ -7,7 +7,7 @@ | |||
* @example Basic Usage | |||
* | |||
* ```javascript | |||
* ;(-3)::abs() // returns 3 | |||
* -3::abs() // returns 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work, it will return -3 because it's the same as doing -(3::abs())
Nicely spotted! 👍 |
@@ -11,7 +11,7 @@ | |||
* | |||
* ```javascript | |||
* [1,2,3,4,1,2,3,4]::takeWhile(function () { | |||
* return this < 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, this is what happens when you accidentally rm -rf .
and reverse generate function declarations with the JSDoc from the generated HTML documentation x)
Merged! ❤️ 🎉 |
Update xor example with xor function call.