aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam_stdlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam_stdlib.js b/src/gleam_stdlib.js
index 30a2585..a45aa89 100644
--- a/src/gleam_stdlib.js
+++ b/src/gleam_stdlib.js
@@ -31,7 +31,7 @@ export function string_replace(string, target, substitute) {
}
export function string_reverse(string) {
- return string.split("").reverse().join("");
+ return [...string].reverse().join("");
}
export function string_length(string) {