fromit:Linq for js Iterables 源码
从中 使用生成器的Linq样式(如c#) npm install fromit import { from } from "fromit" const list = new Set ( [ 1 , 2 , 3 ] ) ; expect ( from ( list ) . filter ( x => x > 2 ) . first ( ) ) . toBe ( 3 ) ; const a = [ 1 , 2 , 3 ] ; const b = [ 3 , 4 , 5 ] ; let r = from ( a ) . intersect ( b ) ; expect ( r . count (
文件列表
fromit-master.zip
(预估有个14文件)
fromit-master
package.json
755B
jest.config.js
106B
LICENSE
1KB
package-lock.json
366KB
src
run.ts
28B
async.ts
7KB
index.spec.ts
4KB
index.ts
8KB
暂无评论