11
jhzh
2025-04-07 52b00599d3b8359549ac8bcfbbb63f6578388121
1
2
3
4
5
6
7
8
function isObj(x) {
  var type = typeof x;
  return x !== null && (type === 'object' || type === 'function');
}
 
module.exports = function (option, valueKey) {
  return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
}