Unique Values-v3
Unique Values is when in a string every letter is unique if they are all different unique then it is true of not like the second example if there are duplicates than it is false ___
##For Example
abcde => true
abcda => false##
function unique(str) {
return new Set(str).size === str.length;
}
function unique(str){
First we create a function called unique and pass an argument string called str.
return new Set(str).size === str.length;
We return new Set that has an argument str if that will be equal to str.
We check if Set(str).size (Note: We set we use size instead of length) and if that return is equal to str.length we eather return true or false;