accessing an array with true or false typescript code example Example: typescript array let list: number[] = [1, 2, 3];