Files
NapCatQQ/.pnpm-store/v3/files/b5/578e9a9ecc7180b070069f07864fc579609f1fe12582ace0b23138cf3dbac1b3f6257ada6f5d7db7ab52853305a19be56bb31e39bb3eb8dc5d1ab04f5e3143
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

9 lines
293 B
Plaintext

function DiscardKey(value, key) {
const { [key]: _, ...rest } = value;
return rest;
}
/** Discards property keys from the given value. This function returns a shallow Clone. */
export function Discard(value, keys) {
return keys.reduce((acc, key) => DiscardKey(acc, key), value);
}