jsfunx 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/jsfunx.cjs +602 -59
- package/jsfunx.mjs +569 -57
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ function add(num1, num2) {
|
|
|
30
30
|
return num1 + num2;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
throw TypeError("invalid arguments");
|
|
33
|
+
throw new TypeError("invalid arguments");
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
console.log(add(1, 3));
|
|
@@ -156,7 +156,7 @@ function add(num1, num2) {
|
|
|
156
156
|
return num1 + num2;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
throw TypeError("invalid arguments");
|
|
159
|
+
throw new TypeError("invalid arguments");
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
console.log(add(new Number(1), new Number(3)));
|