@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 (
|
|
68
|
-
if (typeof
|
|
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 (
|
|
75
|
-
if (typeof
|
|
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
|
@@ -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 (
|
|
82
|
-
if (typeof
|
|
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 (
|
|
89
|
-
if (typeof
|
|
88
|
+
for (const item of arr) {
|
|
89
|
+
if (typeof item !== 'number') return false
|
|
90
90
|
}
|
|
91
91
|
return true
|
|
92
92
|
}
|