Unit refactor done
This commit is contained in:
parent
cd90705ba1
commit
83addc0879
8 changed files with 63 additions and 62 deletions
|
@ -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('.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue