aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.mjs
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-10-26 12:13:33 +0100
committerLouis Pilfold <louis@lpil.uk>2023-10-26 12:24:40 +0100
commit82c7406c84e90c1dadb85fc65925565812dd28ae (patch)
treee11d97e64637464610c0c9cd2c845dd5ba97a1c1 /src/gleam_stdlib.mjs
parent368252c059ffd951958664013001b4037d6b8953 (diff)
downloadgleam_stdlib-82c7406c84e90c1dadb85fc65925565812dd28ae.tar.gz
gleam_stdlib-82c7406c84e90c1dadb85fc65925565812dd28ae.zip
Deprecate gleam/base
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) {