Created
June 10, 2014 18:31
-
-
Save mbejda/02b4511356f1b7a63bef to your computer and use it in GitHub Desktop.
knockout arrayFirst Utility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var match = ko.utils.arrayFirst(myObservableArray(), function(item) { | |
return itemToAdd.id === item.id; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment