Files
todo-frontend/node_modules/licia/property.js
Agent d12eea7693
Some checks failed
continuous-integration/drone/push Build is failing
fix: 微信登录补充保存username和role
2026-04-04 07:35:21 +00:00

16 lines
362 B
JavaScript

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;