vant
This commit is contained in:
8
utils/dist/picker-column/index.wxs
vendored
Normal file
8
utils/dist/picker-column/index.wxs
vendored
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user