import { pick } from "https://deno.land/x/ayonli_jsext@v0.9.72/object/index.ts";
Creates an object composed of the picked keys.
Examples
Example 1
Example 1
import { pick } from "@ayonli/jsext/object";
const obj = { foo: "Hello", bar: "World" };
console.log(pick(obj, ["foo"])); // { foo: "Hello" }
Type Parameters
U extends keyof T