@naturalcycles/nodejs-lib 15.51.1 → 15.51.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.
@@ -64,15 +64,15 @@ export function mergeJsonSchemaObjects(schema1, schema2) {
64
64
  return _filterNullishValues(s1, { mutate: true });
65
65
  }
66
66
  export function isEveryItemString(arr) {
67
- for (let i = 0; i <= arr.length; ++i) {
68
- if (typeof arr[i] !== 'string')
67
+ for (const item of arr) {
68
+ if (typeof item !== 'string')
69
69
  return false;
70
70
  }
71
71
  return true;
72
72
  }
73
73
  export function isEveryItemNumber(arr) {
74
- for (let i = 0; i <= arr.length; ++i) {
75
- if (typeof arr[i] !== 'number')
74
+ for (const item of arr) {
75
+ if (typeof item !== 'number')
76
76
  return false;
77
77
  }
78
78
  return true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
3
  "type": "module",
4
- "version": "15.51.1",
4
+ "version": "15.51.2",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@types/js-yaml": "^4",
@@ -78,15 +78,15 @@ export function mergeJsonSchemaObjects<T1 extends AnyObject, T2 extends AnyObjec
78
78
  }
79
79
 
80
80
  export function isEveryItemString(arr: any[]): boolean {
81
- for (let i = 0; i <= arr.length; ++i) {
82
- if (typeof arr[i] !== 'string') return false
81
+ for (const item of arr) {
82
+ if (typeof item !== 'string') return false
83
83
  }
84
84
  return true
85
85
  }
86
86
 
87
87
  export function isEveryItemNumber(arr: any[]): boolean {
88
- for (let i = 0; i <= arr.length; ++i) {
89
- if (typeof arr[i] !== 'number') return false
88
+ for (const item of arr) {
89
+ if (typeof item !== 'number') return false
90
90
  }
91
91
  return true
92
92
  }