@@ -28,7 +28,7 @@ class Arr extends Array {
28
28
* @param {string } key
29
29
* @param {string= } direction
30
30
*
31
- * @return {array }
31
+ * @return {any[] }
32
32
*/
33
33
multisort ( key , direction ) {
34
34
return multisort ( this [ 0 ] , key , direction ) ;
@@ -41,7 +41,7 @@ class Arr extends Array {
41
41
* @param {string } find
42
42
* @param {boolean= } operator
43
43
*
44
- * @return {array }
44
+ * @return {any[] }
45
45
*/
46
46
multifilter ( key , find , operator ) {
47
47
return multifilter ( this [ 0 ] , key , find , operator ) ;
@@ -52,7 +52,7 @@ class Arr extends Array {
52
52
*
53
53
* @param {string } key
54
54
*
55
- * @return {array }
55
+ * @return {any[] }
56
56
*/
57
57
multikey ( key ) {
58
58
return multikey ( this [ 0 ] , key ) ;
@@ -61,10 +61,10 @@ class Arr extends Array {
61
61
/**
62
62
* Get the intersection of arrays.
63
63
*
64
- * @param {string } array
64
+ * @param {any[] } array
65
65
* @param {boolean= } multi
66
66
*
67
- * @return {array }
67
+ * @return {any[] }
68
68
*/
69
69
intersect ( array , multi ) {
70
70
return intersect ( this [ 0 ] , array , multi ) ;
@@ -73,10 +73,10 @@ class Arr extends Array {
73
73
/**
74
74
* Get the difference of arrays.
75
75
*
76
- * @param {string } array
76
+ * @param {any[] } array
77
77
* @param {boolean= } total
78
78
*
79
- * @return {array }
79
+ * @return {any[] }
80
80
*/
81
81
diff ( array , total ) {
82
82
return diff ( this [ 0 ] , array , total ) ;
@@ -85,7 +85,7 @@ class Arr extends Array {
85
85
/**
86
86
* Get the unique values of an array.
87
87
*
88
- * @return {array }
88
+ * @return {any[] }
89
89
*/
90
90
get unique ( ) {
91
91
return unique ( this [ 0 ] ) ;
@@ -94,9 +94,9 @@ class Arr extends Array {
94
94
/**
95
95
* Only add the value if the value isnt in the array.
96
96
*
97
- * @param {string } newValue
97
+ * @param {any } newValue
98
98
*
99
- * @return {int }
99
+ * @return {number }
100
100
*/
101
101
pushIfNotExists ( newValue ) {
102
102
if ( this . indexOf ( newValue ) < 0 ) {
@@ -109,9 +109,9 @@ class Arr extends Array {
109
109
/**
110
110
* Add multiple values to an array.
111
111
*
112
- * @param {array } newValues
112
+ * @param {any[] } newValues
113
113
*
114
- * @return {int }
114
+ * @return {number }
115
115
*/
116
116
pushMultiple ( newValues ) {
117
117
this . push ( ...newValues ) ;
@@ -123,9 +123,9 @@ class Arr extends Array {
123
123
* Add multiple values to an array.
124
124
* Only add the value if the value isnt in the array.
125
125
*
126
- * @param {array } newValues
126
+ * @param {any[] } newValues
127
127
*
128
- * @return {int }
128
+ * @return {number }
129
129
*/
130
130
pushMultipleIfNotExists ( newValues ) {
131
131
const array = this ;
@@ -142,7 +142,7 @@ class Arr extends Array {
142
142
* If at least one of the arguments cannot be converted to a number,
143
143
* NaN is returned.
144
144
*
145
- * @return {int }
145
+ * @return {number }
146
146
*/
147
147
get max ( ) {
148
148
return max ( this [ 0 ] ) ;
@@ -153,7 +153,7 @@ class Arr extends Array {
153
153
* If at least one of the arguments cannot be converted to a number,
154
154
* NaN is returned.
155
155
*
156
- * @return {int }
156
+ * @return {number }
157
157
*/
158
158
get min ( ) {
159
159
return min ( this [ 0 ] ) ;
@@ -162,7 +162,7 @@ class Arr extends Array {
162
162
/**
163
163
* Get a random value of an array.
164
164
*
165
- * @return {string }
165
+ * @return {any }
166
166
*/
167
167
get random ( ) {
168
168
return random ( this ) ;
@@ -171,7 +171,7 @@ class Arr extends Array {
171
171
/**
172
172
* The summ of all values.
173
173
*
174
- * @return {int }
174
+ * @return {number }
175
175
*/
176
176
get summ ( ) {
177
177
return summ ( this [ 0 ] ) ;
@@ -180,7 +180,7 @@ class Arr extends Array {
180
180
/**
181
181
* Get the average of all values.
182
182
*
183
- * @return {int }
183
+ * @return {number }
184
184
*/
185
185
get average ( ) {
186
186
return average ( this [ 0 ] ) ;
@@ -190,9 +190,9 @@ class Arr extends Array {
190
190
* Javascript implementation of Arr::get
191
191
*
192
192
* @param {string } key
193
- * @param {object|null } defaultValue
193
+ * @param {object= } defaultValue
194
194
*
195
- * @return {object|null }
195
+ * @return {any|undefined }
196
196
*/
197
197
getByKey ( key , defaultValue ) {
198
198
return getByKey ( this [ 0 ] , key , defaultValue ) ;
@@ -201,7 +201,7 @@ class Arr extends Array {
201
201
/**
202
202
* Javascript implementation of Arr::first
203
203
*
204
- * @return {object|null }
204
+ * @return {any|undefined }
205
205
*/
206
206
get first ( ) {
207
207
return first ( this [ 0 ] ) ;
@@ -210,7 +210,7 @@ class Arr extends Array {
210
210
/**
211
211
* Javascript implementation of Arr::last
212
212
*
213
- * @return {object|null }
213
+ * @return {any|undefined }
214
214
*/
215
215
get last ( ) {
216
216
return last ( this [ 0 ] ) ;
@@ -219,10 +219,10 @@ class Arr extends Array {
219
219
/**
220
220
* Update multiple items in an array
221
221
*
222
- * @param {array } newValues
223
- * @param {array } keys
222
+ * @param {any[] } newValues
223
+ * @param {string[] } keys
224
224
*
225
- * @return {array }
225
+ * @return {any[] }
226
226
*/
227
227
update ( newValues , keys ) {
228
228
return update ( this [ 0 ] , newValues , keys ) ;
0 commit comments