Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
9 lines
293 B
Plaintext
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);
|
|
}
|