Created
June 4, 2015 12:45
-
-
Save mplatts/2a2e0e31c9149ee89307 to your computer and use it in GitHub Desktop.
Underscore options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array = [1,2,3,4] | |
_.each array, (item) -> | |
console.log item | |
# OR | |
_(array).each (item) -> | |
console.log item | |
# Same goes with any collection or array function | |
_.uniq(array) | |
# OR | |
_(array).uniq() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment