deno.land / x / masx200_leetcode_test@10.6.5 / utils / split_by_count.ts

split_by_count.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { group } from "../deps.ts";
export function split_by_count<T>(files: T[], limit: number) { return Object.values( group( files, (_s: any, i: number) => i % Math.floor(files.length / limit), ), ) as T[][];}
masx200_leetcode_test

Version Info

Tagged at
a year ago