Browse Source

[util] Added util.path

master
Muthu Kumar 6 years ago
parent
commit
98ef59ff9d
  1. 5
      util/index.js

5
util/index.js

@ -0,0 +1,5 @@
const path = (path, obj) => path.reduce((result, segment) => result && result[segment], obj);
module.exports = {
path,
};
Loading…
Cancel
Save