@lowentry/utils 1.19.2 → 1.19.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowentry/utils",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/src/LeTypes.js CHANGED
@@ -39,7 +39,7 @@ export const IS_OBJECT = (value) => (typeof value === 'object') && (value !== nu
39
39
  * Ensures the given value is an object (returns an empty object if it's not).
40
40
  *
41
41
  * @param value
42
- * @returns {object}
42
+ * @returns {Object}
43
43
  */
44
44
  export const OBJECT = (value) => IS_OBJECT(value) ? value : {};
45
45
 
package/src/LeUtils.js CHANGED
@@ -215,7 +215,7 @@ export const LeUtils = {
215
215
  *
216
216
  * Values are compared by casting both of them to a string.
217
217
  *
218
- * @param {array|object|Function} array
218
+ * @param {*[]|Object|Function} array
219
219
  * @param {*} value
220
220
  * @returns {boolean}
221
221
  */
@@ -244,7 +244,7 @@ export const LeUtils = {
244
244
  *
245
245
  * Values are compared by casting both of them to a string, and then lowercasing them.
246
246
  *
247
- * @param {array|object|Function} array
247
+ * @param {*[]|Object|Function} array
248
248
  * @param {*} value
249
249
  * @returns {boolean}
250
250
  */
@@ -273,8 +273,8 @@ export const LeUtils = {
273
273
  *
274
274
  * Values are compared by casting both of them to a string.
275
275
  *
276
- * @param {array|object|Function} array
277
- * @param {array|object|Function} values
276
+ * @param {*[]|Object|Function} array
277
+ * @param {*[]|Object|Function} values
278
278
  * @returns {boolean}
279
279
  */
280
280
  containsAll:
@@ -301,8 +301,8 @@ export const LeUtils = {
301
301
  *
302
302
  * Values are compared by casting both of them to a string, and then lowercasing them.
303
303
  *
304
- * @param {array|object|Function} array
305
- * @param {array|object|Function} values
304
+ * @param {*[]|Object|Function} array
305
+ * @param {*[]|Object|Function} values
306
306
  * @returns {boolean}
307
307
  */
308
308
  containsAllCaseInsensitive:
@@ -329,8 +329,8 @@ export const LeUtils = {
329
329
  *
330
330
  * Values are compared by casting both of them to a string.
331
331
  *
332
- * @param {array|object|Function} array
333
- * @param {array|object|Function} values
332
+ * @param {*[]|Object|Function} array
333
+ * @param {*[]|Object|Function} values
334
334
  * @returns {boolean}
335
335
  */
336
336
  containsAny:
@@ -357,8 +357,8 @@ export const LeUtils = {
357
357
  *
358
358
  * Values are compared by casting both of them to a string, and then lowercasing them.
359
359
  *
360
- * @param {array|object|Function} array
361
- * @param {array|object|Function} values
360
+ * @param {*[]|Object|Function} array
361
+ * @param {*[]|Object|Function} values
362
362
  * @returns {boolean}
363
363
  */
364
364
  containsAnyCaseInsensitive:
@@ -385,8 +385,8 @@ export const LeUtils = {
385
385
  *
386
386
  * Values are compared by casting both of them to a string.
387
387
  *
388
- * @param {array|object|Function} array
389
- * @param {array|object|Function} values
388
+ * @param {*[]|Object|Function} array
389
+ * @param {*[]|Object|Function} values
390
390
  * @returns {boolean}
391
391
  */
392
392
  containsNone:
@@ -413,8 +413,8 @@ export const LeUtils = {
413
413
  *
414
414
  * Values are compared by casting both of them to a string, and then lowercasing them.
415
415
  *
416
- * @param {array|object|Function} array
417
- * @param {array|object|Function} values
416
+ * @param {*[]|Object|Function} array
417
+ * @param {*[]|Object|Function} values
418
418
  * @returns {boolean}
419
419
  */
420
420
  containsNoneCaseInsensitive:
@@ -439,7 +439,7 @@ export const LeUtils = {
439
439
  /**
440
440
  * Finds the first element in the given array or object that returns true from the callback, and returns an object with the index and value.
441
441
  *
442
- * @param {*[]|object|Function} elements
442
+ * @param {*[]|Object|Function} elements
443
443
  * @param {(value:*, index:*) => boolean|void} callback
444
444
  * @param {boolean} [optionalSkipHasOwnPropertyCheck]
445
445
  * @returns {{index:*, value:*}|null}
@@ -462,7 +462,7 @@ export const LeUtils = {
462
462
  /**
463
463
  * Finds the first element in the given array or object that returns true from the callback, and returns the index.
464
464
  *
465
- * @param {*[]|object|Function} elements
465
+ * @param {*[]|Object|Function} elements
466
466
  * @param {(value:*, index:*) => boolean|void} callback
467
467
  * @param {boolean} [optionalSkipHasOwnPropertyCheck]
468
468
  * @returns {*|null}
@@ -473,7 +473,7 @@ export const LeUtils = {
473
473
  /**
474
474
  * Finds the first element in the given array or object that returns true from the callback, and returns the value.
475
475
  *
476
- * @param {*[]|object|Function} elements
476
+ * @param {*[]|Object|Function} elements
477
477
  * @param {(value:*, index:*) => boolean|void} callback
478
478
  * @param {boolean} [optionalSkipHasOwnPropertyCheck]
479
479
  * @returns {*|null}
@@ -790,7 +790,7 @@ export const LeUtils = {
790
790
  * ```
791
791
  *
792
792
  * @param {*} elements
793
- * @returns {[boolean, *[]|object|Map, (value:*,index:*)=>void]}
793
+ * @returns {[boolean, *[]|Object|Map, (value:*,index:*)=>void]}
794
794
  */
795
795
  getEmptySimplifiedCollection:
796
796
  (elements) =>
@@ -1186,7 +1186,7 @@ export const LeUtils = {
1186
1186
  /**
1187
1187
  * Returns true if the given object is empty, false otherwise.
1188
1188
  *
1189
- * @param {object} obj
1189
+ * @param {Object} obj
1190
1190
  * @param [optionalSkipHasOwnPropertyCheck]
1191
1191
  * @returns {boolean}
1192
1192
  */
@@ -1206,7 +1206,7 @@ export const LeUtils = {
1206
1206
  /**
1207
1207
  * Returns the number of fields in the given object.
1208
1208
  *
1209
- * @param {object} obj
1209
+ * @param {Object} obj
1210
1210
  * @param [optionalSkipHasOwnPropertyCheck]
1211
1211
  * @returns {number}
1212
1212
  */
@@ -1573,7 +1573,7 @@ export const LeUtils = {
1573
1573
  * Allows you to do a fetch, with built-in retry and abort functionality.
1574
1574
  *
1575
1575
  * @param {string} url
1576
- * @param {{retries?:number|null, delay?:number|((attempt:number)=>number)|null}|object|null} [options]
1576
+ * @param {{retries?:number|null, delay?:number|((attempt:number)=>number)|null}|Object|null} [options]
1577
1577
  * @returns {{then:Function, catch:Function, finally:Function, remove:Function, isRemoved:Function}}
1578
1578
  */
1579
1579
  fetch:
@@ -8,7 +8,7 @@ export class SerializableMap extends Map
8
8
  /**
9
9
  * Returns a JSON representation of the map.
10
10
  *
11
- * @returns {object}
11
+ * @returns {Object}
12
12
  */
13
13
  toJSON()
14
14
  {