Unit refactor done

This commit is contained in:
Bán Dénes 2021-01-01 21:46:01 +01:00
parent cd90705ba1
commit 83addc0879
8 changed files with 63 additions and 62 deletions

View file

@ -1,6 +1,9 @@
const m = require('makerjs')
exports.deepcopy = (value) => JSON.parse(JSON.stringify(value))
exports.deepcopy = value => {
if (value === undefined) return undefined
return JSON.parse(JSON.stringify(value))
}
const deep = exports.deep = (obj, key, val) => {
const levels = key.split('.')