Skip to content

Instantly share code, notes, and snippets.

@andevsoftware
Last active February 27, 2016 16:04
Show Gist options
  • Save andevsoftware/c96b8cbd4c9f6719d726 to your computer and use it in GitHub Desktop.
Save andevsoftware/c96b8cbd4c9f6719d726 to your computer and use it in GitHub Desktop.
Data\Collection - introduction
var names = new TSCore.Data.Collection<string>(['jack', 'amy', 'robert', null]);
names.map(name => {
return name.toUpperCase();
}).reject(name => {
return _.isNull(name);
});
// ['JACK', 'AMY', 'ROBERT']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment