Skip to content

Instantly share code, notes, and snippets.

@andevsoftware
Last active February 27, 2016 17:34
Show Gist options
  • Save andevsoftware/f946bdbf7ab3c43de668 to your computer and use it in GitHub Desktop.
Save andevsoftware/f946bdbf7ab3c43de668 to your computer and use it in GitHub Desktop.
Data\Collection - removeMany method
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