In ES2015, a
Set is an object that contains a collections of unique values of any type. Whether you simply want a cleaner API for working with this sort of structure, or need to enforce a unique constraint on all items within your collection,
Sets are the way to go.
Published on Sep 19th, 2016.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.