mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +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';
|
||||
|
||||
export function recursiveMap(objects, reviver) {
|
||||
const newObjects = {};
|
||||
const newObjects = objects instanceof Array ? [] : {};
|
||||
|
||||
for (const i in objects) {
|
||||
if (!objects.hasOwnProperty(i)) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user