Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save josephxbrick/fa6286c86a28889489c84b9093a1b2d5 to your computer and use it in GitHub Desktop.
Save josephxbrick/fa6286c86a28889489c84b9093a1b2d5 to your computer and use it in GitHub Desktop.
iterating an object using a lodash function
artworks =
card1:
title: "Beach"
x: 40
card2:
title: "Turtle"
x: 50
_.forEach artworks, (value, key) ->
print value.title, value.x, key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment