Last active
February 27, 2016 17:32
-
-
Save andevsoftware/6516b84a78b1879f47c8 to your computer and use it in GitHub Desktop.
Data\Collection - addMany 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>(); | |
collection.addMany([ | |
new Movie("The Martian", 2015), | |
new Movie("Sicario", 2015), | |
new Movie("Jurassic World", 2015) | |
]); | |
collection.toArray(); | |
// [ | |
// {title: "The Martian", year: 2015}, | |
// {title: "Sicario", year: 2015}, | |
// {title: "Jurassic World", year: 2015} | |
// ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment