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

Function isEquivalent

packages/effect/test/Array.test.ts:1301–1301  ·  view source on GitHub ↗
(self: string, that: number)

Source from the content-addressed store, hash-verified

1299
1300 it("unionWith compares only self elements with that elements in argument order", () => {
1301 const isEquivalent = (self: string, that: number) => self.trim() === that.toFixed()
1302 deepStrictEqual(Arr.unionWith([" 2 ", " 1 "], [1, 3, 2, 4], isEquivalent), [" 2 ", " 1 ", 3, 4])
1303 })
1304

Callers 12

Option.test.tsFile · 0.85
Result.test.tsFile · 0.85
Redacted.tsFile · 0.85
makeFunction · 0.85
diffWithFunction · 0.85
containsWithFunction · 0.85
Array.tsFile · 0.85
containsWithFunction · 0.85
nextFunction · 0.85
makeEquivalenceFunction · 0.85
containsWithFunction · 0.85
makeEquivalenceFunction · 0.85

Calls 2

trimMethod · 0.80
failMethod · 0.65

Tested by

no test coverage detected