use Array.from instead of spread operator
Signed-off-by: Shashank Bairy R <shashank.bairy04@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user