![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/node_modules/shvl/ |
export function get (object, path, def) { return (object = (path.split ? path.split('.') : path).reduce(function (obj, p) { return obj && obj[p] }, object)) === undefined ? def : object; }; export function set (object, path, val, obj) { return !/^(__proto__|constructor|prototype)$/.test(path) && ((path = path.split ? path.split('.') : path.slice(0)).slice(0, -1).reduce(function (obj, p) { return obj[p] = obj[p] || {}; }, obj = object)[path.pop()] = val), object; };