MCPcopy
hub / github.com/react/react / map

Method map

compiler/packages/babel-plugin-react-compiler/src/Utils/Result.ts:16–16  ·  view source on GitHub ↗
(fn: (val: T) => U)

Source from the content-addressed store, hash-verified

14 * This function can be used to compose the results of two functions.
15 */
16 map<U>(fn: (val: T) => U): Result<U, E>;
17 /*
18 * Maps a `Result<T, E>` to `Result<T, F>` by applying a function to a contained `Err` value,
19 * leaving an `Ok` value untouched.

Callers 15

ComponentFunction · 0.65
applyMethod · 0.65
resolveAllClientFilesMethod · 0.65
processDebugValuesFunction · 0.65
FooFunction · 0.65
selectElementFunction · 0.65
assertConsoleLogsClearedFunction · 0.65
printDiffFunction · 0.65
createLogAssertionFunction · 0.65

Implementers 2

OkImplcompiler/packages/babel-plugin-react-c
ErrImplcompiler/packages/babel-plugin-react-c

Calls

no outgoing calls

Tested by 15

ComponentFunction · 0.52
FooFunction · 0.52
selectElementFunction · 0.52
_touchConfigFunction · 0.52
compileFunction · 0.52
ListFunction · 0.52
ListFunction · 0.52
ListFunction · 0.52
ListFunction · 0.52
ListFunction · 0.52
ListFunction · 0.52