Often no-for-loop
results in something that is a simple spread, which prefer-spread
should handle
This works for both arrays and iterators.
const result = []
for (const element of array) {
result.push(element)
}
const result = []
for (const [index, element] of array.entries()) {
result[index] = element
}
const result = [...array]
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too