Skip to content

Instantly share code, notes, and snippets.

🐻
Typing...

Max Huang nosir

Block or report user

Report or block nosir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jsbin.kotaha.js
// check if string has all unique characters
'use strict';
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
var isUnique1 = function isUnique1(str) {
var hash = {};
for (var i = 0; i < str.length; i++) {
You can’t perform that action at this time.