chore: Minor code refactor adhering to ES6 semantics (#1122)
chore: Minor code refactor adhering to ES6 semantics (#1122)

* chore: use object destructuring

* chore: remove unwanted explicit boolean check

* chore: use object destructuring assignment

* chore: minor refactor

* chore: revert

* chore: revert

* chore: minor tweak

* chore: revert

webpack/webpack-cli,webpack/webpack-cli,webpack/webpack-cli