generated from JoshuaKGoldberg/create-typescript-app
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
type: featureNew enhancement or request 🚀New enhancement or request 🚀
Description
Bug Report Checklist
- I have pulled the latest
main
branch of the repository. - I have searched for related issues and found none that matched my issue.
Overview
So we can use for..of
and Array.from()
, .toArray()
instead of callbacks.
For example:
This can rewrite as
return Array.from(tsutils.getComments(ast), ...);
or
return tsutils.getComments(ast).map(...).toArray();
Additional Info
No response
Metadata
Metadata
Assignees
Labels
type: featureNew enhancement or request 🚀New enhancement or request 🚀