Skip to content

Instantly share code, notes, and snippets.

@houoop
Created January 9, 2013 05:14
Show Gist options
  • Save houoop/4490791 to your computer and use it in GitHub Desktop.
Save houoop/4490791 to your computer and use it in GitHub Desktop.
Knockout Array Filter
var match = ko.utils.arrayFirst(self.dialogboxArray(), function(item) {
return newMessage.target === item.name;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment