chore(input) assign -> spread

This commit is contained in:
coderaiser 2018-10-16 13:01:16 +03:00
parent 1b8c0e2749
commit c73e4f1e29

View file

@ -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