fix(common): toReversed -> array.reverse()

This commit is contained in:
kyuuseiryuu 2026-03-07 12:05:50 +09:00
parent bcfedd0009
commit 76bb126c4e

View File

@ -8,7 +8,7 @@ export function sneckGroup(size: number, groupLen: number) {
const chunckedGroup = chunk(indexArray, groupLen); const chunckedGroup = chunk(indexArray, groupLen);
const reversedGroup = chunckedGroup.map((e, i) => { const reversedGroup = chunckedGroup.map((e, i) => {
if (i % 2 === 0) return e; if (i % 2 === 0) return e;
return e.toReversed(); return [...e].reverse();
}); });
const newGroups: number[][] = []; const newGroups: number[][] = [];
for (let groupIndex = 0; groupIndex < groupLen; groupIndex++) { for (let groupIndex = 0; groupIndex < groupLen; groupIndex++) {