@splendidlabz/utils 1.11.5 → 1.11.6

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.
@@ -713,6 +713,9 @@ function isDigit(char) {
713
713
 
714
714
  // src/lib/objects/camelcase-keys.js
715
715
  function camelCaseKeys(obj) {
716
+ if (Array.isArray(obj)) {
717
+ return obj.map((value) => camelCaseKeys(value));
718
+ }
716
719
  if (typeof obj !== "object" || obj === null) {
717
720
  return obj;
718
721
  }
@@ -64,6 +64,9 @@ function isDigit(char) {
64
64
 
65
65
  // src/lib/objects/camelcase-keys.js
66
66
  function camelCaseKeys(obj) {
67
+ if (Array.isArray(obj)) {
68
+ return obj.map((value) => camelCaseKeys(value));
69
+ }
67
70
  if (typeof obj !== "object" || obj === null) {
68
71
  return obj;
69
72
  }
@@ -98,6 +98,9 @@ function isDigit(char) {
98
98
 
99
99
  // src/lib/objects/camelcase-keys.js
100
100
  function camelCaseKeys(obj) {
101
+ if (Array.isArray(obj)) {
102
+ return obj.map((value) => camelCaseKeys(value));
103
+ }
101
104
  if (typeof obj !== "object" || obj === null) {
102
105
  return obj;
103
106
  }
@@ -71,6 +71,9 @@ function isDigit(char) {
71
71
 
72
72
  // src/lib/objects/camelcase-keys.js
73
73
  function camelCaseKeys(obj) {
74
+ if (Array.isArray(obj)) {
75
+ return obj.map((value) => camelCaseKeys(value));
76
+ }
74
77
  if (typeof obj !== "object" || obj === null) {
75
78
  return obj;
76
79
  }
@@ -1,6 +1,9 @@
1
1
  import { objectForEach } from "./loop.js";
2
2
  import { toCamel } from "../strings/convert-case/convert-case.js";
3
3
  function camelCaseKeys(obj) {
4
+ if (Array.isArray(obj)) {
5
+ return obj.map((value) => camelCaseKeys(value));
6
+ }
4
7
  if (typeof obj !== "object" || obj === null) {
5
8
  return obj;
6
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splendidlabz/utils",
3
- "version": "1.11.5",
3
+ "version": "1.11.6",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "homepage": "https://splendidlabz.com/docs/utils",