Skip to content
Gentilhomme edited this page Jul 26, 2016 · 1 revision

Collection : Map

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.

Example

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}`);
}
Clone this wiki locally