Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript inline switch

{(() => {
    switch (header) {
                        case "Name":  return entry.name;
                        case "Type": return entry.type;
                        default: return entry.name;
                    }
})()}
 
PREVIOUS NEXT
Tagged: #typescript #inline #switch
ADD COMMENT
Topic
Name
1+2 =