Join Discord
Powered by
function addBracesIfNeeded(input) { if (!input.s...
# 💻developers
b
bitter-branch-40324
08/12/2023, 9:47 PM
function addBracesIfNeeded(input) { if (!input.startsWith("{")) { input = "{" + input; } if (!input.endsWith("}")) { input = input + "}"; } return input; } let modifiedInput = addBracesIfNeeded(userInput);
Previous
Next