Skip to content

Instantly share code, notes, and snippets.

@abuiles
Last active December 23, 2015 21:39
Show Gist options
  • Save abuiles/6698011 to your computer and use it in GitHub Desktop.
Save abuiles/6698011 to your computer and use it in GitHub Desktop.
foos = model.get('foos')
if (foos.isFulfilled == false)
foos.then((foos) ->
foos.get('firstObject')
)
else
foos.get('firstObject')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment