mplatts
6/4/2015 - 12:45 PM

Underscore options

Underscore options

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