Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
isUniqueChar
//JavaScript-C24.2.0 (SpiderMonkey) print(isUniqueChar('Finally')); function isUniqueChar(str) { let map = new Object(); for (let i = 0; i < str.length; i++) { if (map.hasOwnProperty(str[i])) { return false } map[str[i]] = true; } return true }
run
|
edit
|
history
|
help
0
Aa
Viktor Schelochkov
Herrn
ArraY_ROW addition
Iterate the iteratable object from the iterator object
10 bottles of juice
G
1
Loops
Logical NOT in JavaScript