bfg-common 1.3.281 → 1.3.282

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.
@@ -0,0 +1,15 @@
1
+ export const useDeepClone = (obj: any): any => {
2
+ if (Array.isArray(obj)) {
3
+ return obj.map((item) => useDeepClone(item))
4
+ } else if (obj && typeof obj === 'object') {
5
+ const clone: any = {}
6
+ for (const key in obj) {
7
+ if (obj.hasOwnProperty(key)) {
8
+ clone[key] = useDeepClone(obj[key])
9
+ }
10
+ }
11
+ return clone
12
+ } else {
13
+ return obj
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.281",
4
+ "version": "1.3.282",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",