1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-remove-all-falsy-values-from-a-collection-by-calling-filter-without-any-arguments.md
2022-03-26 13:32:34 +01:00

515 B

title tweet_id thread_slug author_username images created_at slug
You can remove all falsy values from a Collection by calling filter() without any arguments 1507455538078003203 weekly-thread-2022-12 ecrmnn
https://pbs.twimg.com/media/FOYvPYuWQAoA-2P.jpg
2022-03-25T20:33:02+00:00 you-can-remove-all-falsy-values-from-a-collection-by-calling-filter-without-any-arguments

Laravel Collections tip. To remove all falsy values from the collection, simply call filter without any arguments