From c73e4f1e299026f22231305435d948ab20330936 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 16 Oct 2018 13:01:16 +0300 Subject: [PATCH] chore(input) assign -> spread --- client/input.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/input.js b/client/input.js index 2c8c072e..459ca7a4 100644 --- a/client/input.js +++ b/client/input.js @@ -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