adventofcode/2021/13/part2.mjs
2021-12-13 11:03:09 -05:00

15 lines
259 B
JavaScript

import fs from "fs-extra";
import fp from "lodash/fp.js";
import _ from "lodash";
import * as p1 from './part1.mjs';
export function solution({grid, instructions}) {
instructions.forEach(i =>p1.foldGrid(grid,...i));
return p1.printGrid(grid);
}