-
Notifications
You must be signed in to change notification settings - Fork 0
Map
Gentilhomme edited this page Jul 26, 2016
·
1 revision
This is a ES6 Like. But you can only put "string" key. That's is similar to do { [key:string] : V }
typings. But map bring to you all others feature from map like entries
, values
and keys
.
const myMap: United.Collections.Map<boolean> = new United.Collections.Map<boolean>({
"blue": true,
"red": false
});
for(let [k,v] of myMap.entries()) {
Sup.log(`${k} - ${v}`);
}
Contributor :
- Fraxken
- Purexo