```
const arraytoJSON = params => {
const json = params.reduce(
(acc, { apiKey, valueKey }) => ({
...acc,
[apiKey]: valueKey
}),
{}
)
return json;
} ```
```
const arraytoJSON = params => {
const json = params.reduce(
(acc, { apiKey, valueKey }) => ({
...acc,
[apiKey]: valueKey
}),
{}
)
return json;
} ```
本文标题:2019-10-18
本文链接:https://www.haomeiwen.com/subject/pjqwmctx.html
网友评论