Skip to content

Instantly share code, notes, and snippets.

View elersong's full-sized avatar
📱
Working on two service apps as personal projects. Open to collaborators.

Grey Elerson elersong

📱
Working on two service apps as personal projects. Open to collaborators.
  • Operational Systems, Inc.
  • Salt Lake City, UT
View GitHub Profile
@elersong
elersong / unique.js
Created February 11, 2021 21:03
Check for duplicate array values
// test if string contains any duplicate chars
function isUniq(str) {
let letters = {};
str.split('').forEach(char => {
if (letters[char]) {
letters[char] = false;
} else {
letters[char] = true;
}
});