Prevent duplicate values to be added to an array.

PHOTO EMBED

Fri Nov 13 2020 04:55:07 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira #javascript

if (array.includes(value) === false) array.push(value);
content_copyCOPY

https://stackoverflow.com/questions/46700862/trying-to-prevent-duplicate-values-to-be-added-to-an-array/46700870