Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/betomoedano/JavaScript-Coding-Interview-Questions
/ isUnique.js
File
isUnique.js
strings/isUnique.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
function
isUnique(string) {
2
if
(string.length === 0)
return
string;
3
const
regex = / /g;
4
return
string.replace(regex,
"%20"
);
Callers
nothing calls this directly
Calls
1
isUnique
Function · 0.85
Tested by
no test coverage detected