Last active
February 27, 2016 16:04
-
-
Save andevsoftware/c96b8cbd4c9f6719d726 to your computer and use it in GitHub Desktop.
Data\Collection - introduction
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 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