extractMatrixColumn=(m,c)=>m.map(r=>r[c])
////////10////////20////////30////////40////////50////////60////////70////////80////////90///////100
// [DAY 22] score: 41
/*
** javascriptmas golf rules:
** - the original test suite must pass and not be modified
** - the solution must generally work (edge cases aren't important unless stated in the problem)
** - each character in the code above counts as a stroke (including whitespace)
** - lowest score wins
*/
/**
* Test Suite
*/
describe('extractMatrixColumn()', () => {
it('returns largest positive integer possible for digit count', () => {
// arrange
const matrix = [[1, 1, 1, 2], [0, 5, 0, 4], [2, 1, 3, 6]];
const column = 2;
// act
const result = extractMatrixColumn(matrix, column);
// log
console.log("result: ", result);
// assert
expect(result).toEqual([1, 0, 3]);
});
});