You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var pushUniqueChar = (str) => str.split("").filter((item,index,arr) => arr.slice(index+1).indexOf(item) === -1);
// ================================================ < second method (using available function new Set) > ========================================================
var pushUniqueChar = (str) => [...(new Set(str.split("")))];