jsfunx 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. 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 new TypeError("invalid arguments");
33
+ throw new TypeError("invalid arguments types");
34
34
  }
35
35
 
36
36
  console.log(add(1, 3));
@@ -58,7 +58,7 @@ function add(num1, num2) {
58
58
  return num1 + num2;
59
59
  }
60
60
 
61
- throw new TypeError("invalid arguments");
61
+ throw new TypeError("invalid arguments types");
62
62
  }
63
63
 
64
64
  console.log(add(1, 3));
@@ -93,7 +93,7 @@ function fun(name, age) {
93
93
  return;
94
94
  }
95
95
 
96
- throw new TypeError("invalid arguments");
96
+ throw new TypeError("invalid arguments types");
97
97
  }
98
98
 
99
99
  fun("mohamed", 23);
@@ -122,7 +122,7 @@ function fun(name, age) {
122
122
  return;
123
123
  }
124
124
 
125
- throw new TypeError("invalid arguments");
125
+ throw new TypeError("invalid arguments types");
126
126
  }
127
127
 
128
128
  fun("mohamed", 23);
@@ -156,7 +156,7 @@ function add(num1, num2) {
156
156
  return num1 + num2;
157
157
  }
158
158
 
159
- throw new TypeError("invalid arguments");
159
+ throw new TypeError("invalid arguments types");
160
160
  }
161
161
 
162
162
  console.log(add(new Number(1), new Number(3)));
@@ -180,7 +180,7 @@ function add(num1, num2) {
180
180
  return num1 + num2;
181
181
  }
182
182
 
183
- throw new TypeError("invalid arguments");
183
+ throw new TypeError("invalid arguments types");
184
184
  }
185
185
 
186
186
  console.log(add(new Number(1), new Number(3)));
@@ -210,7 +210,7 @@ function fun(name, age) {
210
210
  console.log(`your name is ${name} and your age is ${age}`);
211
211
  return;
212
212
  }
213
- throw new TypeError("invalid arguments");
213
+ throw new TypeError("invalid arguments types");
214
214
  }
215
215
 
216
216
  fun(new String("mohamed"), new Number(23));
@@ -235,7 +235,7 @@ function fun(name, age) {
235
235
  return;
236
236
  }
237
237
 
238
- throw new TypeError("invalid arguments");
238
+ throw new TypeError("invalid arguments types");
239
239
  }
240
240
 
241
241
  fun(new String("mohamed"), new Number(23));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsfunx",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "JavaScript utility functions for cleaner, more readable code",
5
5
  "main": "./jsfunx.cjs",
6
6
  "module": "./jsfunx.mjs",