Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 1x 6x 6x 80x 80x 80x 6x | // www.codewars.com/kata/59a9919107157a45220000e1/train/python
export function findIntLocationsInArray(intArray: number[], int: number): number[] {
const intLocations: number[] = [];
intArray.map((arrInt, index) => {
const isInArray = arrInt === int;
isInArray && intLocations.push(index);
return isInArray;
});
return intLocations;
}
|