Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript initialise map

private _gridOptions:Map<string, Array<string>> = 
    new Map([
        ["1", ["test"]],
        ["2", ["test2"]]
    ]);
//or
let variableName: Map<string, string[]> = new Map();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #initialise #map
ADD COMMENT
Topic
Name
8+9 =