Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Oct 31, 2023
1 parent 1c6fcf2 commit b8083cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/indexer/src/toolkit/collection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class CollectionKit {
public static parts<T>(array: T[], part = 1): T[] {
public static parts<T>(array: T[], part = 1): T[][] {
const rets = [];
const length = array.length;
const size = Math.floor(length / part);
Expand All @@ -20,7 +20,7 @@ export class CollectionKit {
return rets;
}

public static split<T>(array: T[], size = 10): T[] {
public static split<T>(array: T[], size = 10): T[][] {
const rets = [];
const length = array.length;
let start = 0, end = size;
Expand Down

0 comments on commit b8083cc

Please sign in to comment.