Pick Properties from an Object
import { object } from "@rjweb/utils"object.pick({ ok: true, e: 0 }, ['ok']) // { ok: true }object.pick({ ok: true, e: 0 }, ['ok', 'e']) // { ok: true, e: 0 } Copy
import { object } from "@rjweb/utils"object.pick({ ok: true, e: 0 }, ['ok']) // { ok: true }object.pick({ ok: true, e: 0 }, ['ok', 'e']) // { ok: true, e: 0 }
1.12.15
nodejs, browser
Pick Properties from an Object