15 lines
259 B
JavaScript
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);
|
|
|
|
|
|
}
|