deno.land / x / froebel@v0.23.2 / pick.test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pick from "./pick.ts";import { assertEquals } from "testing/asserts.ts";
Deno.test("pick", () => { const obj = { a: "foo", b: "bar", c: "baz" };
const foo = pick(obj, "a", "b"); assertEquals(foo, { a: "foo", b: "bar" });
const _a: string = foo.a; const _b: string = foo.b; // @ts-expect-error const _c = foo.c;});
froebel

Version Info

Tagged at
a year ago