To remove array duplicates in #javascript, you can use the filter() method. The indexOf is checking if there is occurrence of the looped item within the array. If it doesn't pass the check, it will be filtered out ✨
🍎 Code notes:https://t.co/1XpDp6YDSH pic.twitter.com/v8ir61kMk1
— Samantha Ming (@samantha_ming) August 6, 2020

Node.js移除,重開機,就解決了*__*