Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
11
node_modules/dset/dist/index.js
generated
vendored
Normal file
11
node_modules/dset/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
function dset(obj, keys, val) {
|
||||
keys.split && (keys=keys.split('.'));
|
||||
var i=0, l=keys.length, t=obj, x, k;
|
||||
while (i < l) {
|
||||
k = ''+keys[i++];
|
||||
if (k === '__proto__' || k === 'constructor' || k === 'prototype') break;
|
||||
t = t[k] = (i === l) ? val : (typeof(x=t[k])===typeof(keys)) ? x : (keys[i]*0 !== 0 || !!~(''+keys[i]).indexOf('.')) ? {} : [];
|
||||
}
|
||||
}
|
||||
|
||||
exports.dset = dset;
|
Reference in New Issue
Block a user