Skip to content

Instantly share code, notes, and snippets.

@zspencer
Forked from searls/underfail.coffee
Created February 1, 2012 23:39
Show Gist options
  • Save zspencer/1720187 to your computer and use it in GitHub Desktop.
Save zspencer/1720187 to your computer and use it in GitHub Desktop.
data =
a: 0
b: "foo"
result = _(data).reject((v,k) -> k == 'b')
expect(result).toEqual(a: 0) #but fail! it returns: [0]
result = {}
_(data).each((v,k) ->
result[k] = v if k == 'b'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment