mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +01:00
fix reviver
This commit is contained in:
parent
68a36c29e3
commit
9101a6325a
@ -6,7 +6,7 @@ import { base64ToImage, base64ToVectorArray } from '../utils/binaryUtils.js';
|
|||||||
import { LEGACY_HEIGHT_STEP } from '../constants/d3Constants.js';
|
import { LEGACY_HEIGHT_STEP } from '../constants/d3Constants.js';
|
||||||
|
|
||||||
export function recursiveMap(objects, reviver) {
|
export function recursiveMap(objects, reviver) {
|
||||||
const newObjects = {};
|
const newObjects = objects instanceof Array ? [] : {};
|
||||||
|
|
||||||
for (const i in objects) {
|
for (const i in objects) {
|
||||||
if (!objects.hasOwnProperty(i)) continue;
|
if (!objects.hasOwnProperty(i)) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user