return pathArr.reduce(. (obj, key) => (obj && obj[key] !== 'undefined' ? obj[key] : null),. nestedObj. );. };. // pass in your object structure as array of ...
確定! 回上一頁