Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
var isArr = require('./isArr');
var safeGet = require('./safeGet');
exports = function(path) {
if (!isArr(path)) return shallowProperty(path);
return function(obj) {
return safeGet(obj, path);
};
};
function shallowProperty(key) {
return function(obj) {
return obj == null ? void 0 : obj[key];
};
}
module.exports = exports;