Categories
Mastering Development

Losing data from array

I’m slicing 3 elements from an array and storing them to another array array = [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1]; rows = 3; Here is my method getVertWallStruct = (array, rows) => { let i = 1, storageArr = [], data = […]