Back

I was writing out a method today that accepted an array of items as a parameter. I always try to type the array using something like: `MyObject[]`. That got me thinking about what type I should use though? Do you use `array`, `iterable`, or `Collection` if you're in the Laravel world?

2

492

In response to @MrPunyapal

Just saved the thread to Readwise and will read soon, thanks!

235

0 / 1000