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

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

Version Info

Tagged at
a year ago