UNPKG
ui-config
Version:
latest (1.1.2)
1.1.2
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
快速ui框架配置
github.com/ChYuanJinlin/ui-config
ui-config
/
bin
/
utils
/
getKey.js
14 lines
(10 loc)
•
216 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
getKey
= (
res, obj
) => {
// console.log(res,obj);
for
(
const
key
in
obj) {
if
(key == res) {
// console.log('obj[key]--',obj[key]);
return
obj[key] } } }
module
.
exports
= getKey