Last active
February 27, 2016 17:33
-
-
Save andevsoftware/81a7edac8cd49e98b0cf to your computer and use it in GitHub Desktop.
Data\Collection - Remove
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("The Avengers: Age of Ultron", 2015) | |
]); | |
var movie = new Movie("The Martian", 2015); | |
collection.add(movie); | |
collection.remove(movie); | |
collection.toArray(); | |
// [ | |
// { title: "The Avengers: Age of Ultron", year: 2015 } | |
// ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment