Skip to content

Instantly share code, notes, and snippets.

@fonzerelly
Last active September 2, 2016 22:15
Show Gist options
  • Save fonzerelly/7796847 to your computer and use it in GitHub Desktop.
Save fonzerelly/7796847 to your computer and use it in GitHub Desktop.
reason of missbehaviour
//expected call for book[0]:
_.result(books[0], "numberOfPages");
//evaluated call:
_.result(books[0], 0, books, "numberOfPages");
//which means effectivly
_.result(books[0], 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment