We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce768ae commit 7c31865Copy full SHA for 7c31865
1 file changed
src/testing/variables/function.const.ts
@@ -4,4 +4,11 @@ import { Func } from '../../type/func.type';
4
* instanceof Function === true
5
* instanceof Object === true
6
*/
7
-export const FUNCTION: Func = (x: number, y: string): any => x + y;
+export const FUNCTION: any = (x: number, y: string): any => x + y;
8
+
9
+export function functionConstructor(this: any, ...args: any[]): any {
10
+ if (args) {
11
+ args.forEach((arg, index: number) => this[index] = arg[index]);
12
+ }
13
+ return this;
14
+}
0 commit comments