@lucid-softworks/object-pick
v0.1.0
Published
Pick typed own properties from an object.
Maintainers
Readme
@lucid-softworks/object-pick
Copy selected properties into a new, accurately typed object.
import { pick } from "@lucid-softworks/object-pick";
pick({ id: 1, name: "Ada", secret: true }, ["id", "name"]);
// { id: 1, name: "Ada" }String, number, symbol, and prototype-like keys are supported. The input is never mutated.
