Skip to content

Commit

Permalink
Simplify the code and make it more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Delawski committed Jan 7, 2020
1 parent f127fb9 commit c83832d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/product-icon/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ export const iconToProductSlugMap = {
'jetpack-backup-realtime': [ 'jetpack_backup_realtime', 'jetpack_backup_realtime_monthly' ],
};

export const supportedSlugs = [ ...Object.values( iconToProductSlugMap ) ].reduce( ( a, b ) =>
a.concat( b )
);
export const supportedSlugs = Object.values(
iconToProductSlugMap
).reduce( ( flattenedSlugs, slugs ) => flattenedSlugs.concat( slugs ) );

0 comments on commit c83832d

Please sign in to comment.