@lucid-softworks/string-count
v0.1.0
Published
Count non-overlapping substring occurrences.
Maintainers
Readme
@lucid-softworks/string-count
Count non-overlapping substring occurrences.
import { countOccurrences } from "@lucid-softworks/string-count";
countOccurrences("one two one", "one"); // 2See the exported types and tests for exact edge-case behavior.
