Last active
February 27, 2016 17:34
-
-
Save andevsoftware/f946bdbf7ab3c43de668 to your computer and use it in GitHub Desktop.
Data\Collection - removeMany 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>(); | |
var movie1 = new Movie("The Avengers: Age of Ultron", 2015); | |
var movie2 = new Movie("Mad Max: Fury Road", 2015); | |
collection.addMany([movie1, movie2]); | |
collection.removeMany([movie1, movie2]); | |
collection.toArray(); | |
// [ | |
// { title: "The Avengers: Age of Ultron", year: 2015 }, | |
// { title: "Mad Max: Fury Road", year: 2015 } | |
// ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment