Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
3
test/initialize2DArray/initialize2DArray.js
Normal file
3
test/initialize2DArray/initialize2DArray.js
Normal file
@ -0,0 +1,3 @@
|
||||
const initialize2DArray = (w, h, val = null) =>
|
||||
Array.from({ length: h }).map(() => Array.from({ length: w }).fill(val));
|
||||
module.exports = initialize2DArray;
|
||||
Reference in New Issue
Block a user