Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | 491x | /**
* Set `key` on `target` as an own, enumerable property. Plain assignment with the key
* `__proto__` replaces the prototype instead, so the entry would vanish from the request.
*/
export function setEntry<T>(target: Record<string, T>, key: string, value: T): void {
Object.defineProperty(target, key, {
value,
enumerable: true,
writable: true,
configurable: true,
});
}
|