typescript cheatsheet code example
Example 1: typescript cheat sheet
// cheatsheets for typescript
https://devhints.io/typescript
Example 2: typescript cheatsheet
enum Color {Red, Green, Blue = 4}
let c: Color = Color.Green
Example 3: typescript cheat sheet 2020
let len: number = (input as string).length
let len: number = ( input).length /* not allowed in JSX */