Skip to content

Instantly share code, notes, and snippets.

@nickcherry
Created April 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcherry/caef7c92fae10342962b to your computer and use it in GitHub Desktop.
Save nickcherry/caef7c92fae10342962b to your computer and use it in GitHub Desktop.
Implicit Returns
attrs = { a: true, b: true, c: false, d: true, e: false }
_.each attrs, (val, key) =>
console.log(key, val)
@[key] = val
# a true
# b true
# c false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment