Last active
February 27, 2016 17:53
-
-
Save andevsoftware/b1ce60c002b9f3a6be4a to your computer and use it in GitHub Desktop.
Data\Collection - removeWhere method
This file contains hidden or 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 collection = new TSCore.Data.Collection<Movie>([ | |
new Movie("Deadpool", 2016), | |
new Movie("Triple 9", 2016), | |
new Movie("The Martian", 2015) | |
]); | |
collection.toArray(); | |
collection.removeWhere({ year: 2015 }); | |
// [ | |
// { title: "Deadpool", year: 2016 }, | |
// { title: "Triple 9", year: 2016 } | |
// ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment