MCPcopy Create free account
hub / github.com/Pecunia-Wallet/PecuniaWallet / splitToRows

Function splitToRows

src/app/components/code/code.component.ts:137–144  ·  view source on GitHub ↗
(arr: T[])

Source from the content-addressed store, hash-verified

135 }
136
137 splitToRows<T>(arr: T[]): T[][] {
138 arr = [...arr];
139 const res: T[][] = [];
140 while (arr.length > 0) {
141 res.push(arr.splice(-3));
142 }
143 return res;
144 }
145
146 reversed<T>(arr: T[]): T[] {
147 arr.reverse();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected