MCPcopy
hub / github.com/prettier/prettier / map

Function map

tests/format/flow/flow-repo/rec/issue-598.js:17–17  ·  view source on GitHub ↗
(f: (_: typeof val) => B)

Source from the content-addressed store, hash-verified

15function identity<A>(val: A): Functor<A> {
16 return {
17 map<B>(f: (_: typeof val) => B): Functor<B> { return identity(f(val)) }
18 }
19}

Callers 9

testFunction · 0.85
object.jsFile · 0.85
property-value.jsFile · 0.85
rxjs_pipe.jsFile · 0.85

Calls 2

identityFunction · 0.70
fFunction · 0.50

Tested by 1

testFunction · 0.68