solutions/typescript/2020/24/src/parse.function.ts
Function parse
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const parse = (input: string): HexagonalDirection[][] => {
const instructions: HexagonalDirection[][] = [];
for (const line of split(input)) {
const neighbours: HexagonalDirection[] = [];
let chomp = line;