sindresorhus / globby

User-friendly glob matching
MIT License
2.49k stars 126 forks source link

Make ignoreFiles option accept readonly arrays #235

Closed djmattyg007 closed 2 years ago

djmattyg007 commented 2 years ago

As the code has no need to mutate this array, it makes sense that it should accept readonly arrays. This avoids unnecessary slicing/spreading to ensure readonly arrays in calling code can be accepted.