Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
regorxxx committed Feb 19, 2023
1 parent 66af522 commit 9a64879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/helpers_xxx_basic_js.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function getNested(obj, ...args) {
return args.reduce((obj, level) => obj && obj[level], obj);
}

function setNested(obj, value, ...args) => {
function setNested(obj, value, ...args) {
const len = args.length - 1;
return args.reduce((obj, level, idx) => {
if (obj && len === idx && obj.hasOwnProperty(level)) {obj[level] = value;}
Expand Down

0 comments on commit 9a64879

Please sign in to comment.