aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gleam_stdlib.mjs')
-rw-r--r--src/gleam_stdlib.mjs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gleam_stdlib.mjs b/src/gleam_stdlib.mjs
index 5c55b24..645e22a 100644
--- a/src/gleam_stdlib.mjs
+++ b/src/gleam_stdlib.mjs
@@ -9,7 +9,6 @@ import {
toBitArray,
NonEmpty,
CustomType,
- BitArray,
} from "./gleam.mjs";
import {
CompileError as RegexCompileError,
@@ -225,8 +224,8 @@ export function crop_string(string, substring) {
return string.substring(string.indexOf(substring));
}
-export function index_of(haystack, needle) {
- return haystack.indexOf(needle) | 0;
+export function contains_string(haystack, needle) {
+ return haystack.indexOf(needle) >= 0;
}
export function starts_with(haystack, needle) {