I have an array that contains some hash values of certain strings,
I don't want duplicate values in my array so I use if
logic like this:
if(!arrayOfHash.includes(hash_value)){
arrayOfHash.push(hash_value);
}
I want to know the complexity of the includes
method in JavaScript.
Is it a linear search function or is it a modified search function?