MCPcopy Create free account
hub / github.com/Effect-TS/effect / count

Function count

packages/effect/test/ui/WorkedExample.test.ts:56–56  ·  view source on GitHub ↗
(text: string, part: string)

Source from the content-addressed store, hash-verified

54const cardName = (root: Root) => Locator.textOf(root.get(Locator.tag("h2")))
55const fetchesOf = (root: Root, read: string) => root.fetches().filter((fetch) => fetch.query === read)
56const count = (text: string, part: string) => text.split(part).length - 1
57
58/** The list page and the detail page side by side. */
59const Both = Html.component({

Callers 2

Atom.test.tsFile · 0.50

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected