mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(input) assign -> spread
This commit is contained in:
parent
1b8c0e2749
commit
c73e4f1e29
1 changed files with 4 additions and 1 deletions
|
|
@ -26,7 +26,10 @@ module.exports.getName = (element) => {
|
|||
};
|
||||
|
||||
module.exports.convert = (config) => {
|
||||
const result = Object.assign({}, config);
|
||||
const result = {
|
||||
...config
|
||||
};
|
||||
|
||||
const array = Object.keys(result);
|
||||
|
||||
array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue