Skip to content

Instantly share code, notes, and snippets.

@neodigm
Created August 8, 2022 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neodigm/281bb9bd3d7eb70bd8421af0f062c739 to your computer and use it in GitHub Desktop.
Save neodigm/281bb9bd3d7eb70bd8421af0f062c739 to your computer and use it in GitHub Desktop.
Contains all unique chars
function testUniqueChars(text) {
// www.theScottKrause.com
const aDucks = Array.from(new Set(Array.from(text)));
return text.length == aDucks.length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment