Javascript least used character in string [closed]

Write a function leastFrequentLetter(string) that will take a
string as an argument and return the character that appears the
least often. In case of a tie, return any character with the
lowest count. The string will have at least one character.