fix: First/last being extended on proxy objects (#5140)

* fix: first/last being extended on proxy objects

* fix: better method that won't require changes later
This commit is contained in:
Valya
2023-01-12 14:04:49 +00:00
committed by GitHub
parent 14a61f6ab1
commit 9dca984c0c

View File

@@ -227,7 +227,6 @@ export function extend(input: unknown, functionName: string, args: unknown[]) {
if ( if (
inputAny && inputAny &&
functionName && functionName &&
functionName in inputAny &&
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
typeof inputAny[functionName] === 'function' typeof inputAny[functionName] === 'function'
) { ) {