use Array.from instead of spread operator

Signed-off-by: Shashank Bairy R <shashank.bairy04@gmail.com>
This commit is contained in:
Shashank Bairy R
2021-05-09 11:58:40 +05:30
parent 2cd70e1646
commit d40316a7fd
+3 -3
View File
@@ -195,9 +195,9 @@ export default async () => {
);
console.log();
for (const [name, { from, to }] of [
...breakingUpdates.entries(),
].sort()) {
for (const [name, { from, to }] of Array.from(
breakingUpdates.entries(),
).sort()) {
console.log(
` ${chalk.yellow(name)} : ${chalk.yellow(from)} ~> ${chalk.yellow(
to,