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 48afc0d commit 4b04bd6Copy full SHA for 4b04bd6
README.md
@@ -39,6 +39,8 @@
39
|33 | [replaceAll](#replaceAll)|
40
|34 | [Required Function Params](#Required-Function-Params)|
41
|35 | [Get input value as a number](#Get-input-value-as-a-number)|
42
+|36 | [Creating a function using Function constructor](#Create-Function-Using-Constructor)|
43
+
44
45
46
@@ -753,4 +755,16 @@ function checkMyType(event){
753
755
754
756
}
757
758
+```
759
760
+**[⬆ Back to Top](#table-of-contents)**
761
+### Create a function using Function constructor
762
+```javascript
763
+function bar() {
764
+ return new Function('return "x"');
765
+ };
766
+var x = bar();
767
+x();//returns x
768
769
770
```
0 commit comments