MCPcopy Create free account

hub / github.com/alexreardon/memoize-one / functions

Functions37 in github.com/alexreardon/memoize-one

↓ 5 callersFunctionmemoizeOne
( resultFn: TFunc, // `TFunc & {}` makes TypeScript infer `TFunc` from `resultFn` first. Without it, an
src/memoize-one.ts:68
↓ 4 callersFunctionisEqual
(first: unknown, second: unknown)
benchmarks/comparison/v6.ts:11
↓ 4 callersFunctionmemoized
( this: ThisParameterType<TFunc>, ...newArgs: Parameters<TFunc> )
src/memoize-one.ts:80
↓ 2 callersFunctionareInputsEqual
( newInputs: readonly unknown[], lastInputs: readonly unknown[], )
src/memoize-one.ts:41
↓ 2 callersFunctionfn
()
benchmarks/comparison/scenarios.ts:15
↓ 2 callersFunctionformat
(value: number)
benchmarks/comparison/run.ts:21
↓ 2 callersFunctionmemoized
( this: ThisParameterType<TFunc>, ...newArgs: Parameters<TFunc> )
benchmarks/comparison/v6.ts:58
↓ 1 callersFunctioncaller
(fn: typeof add)
test/types-test.spec.ts:65
↓ 1 callersFunctionclone
(person: Person)
test/memoize-one.spec.ts:602
↓ 1 callersFunctioncompare
(newInputs: unknown[], lastInputs: unknown[])
benchmarks/comparison/scenarios.ts:21
↓ 1 callersFunctionisEqual
(first: Parameters<typeof add>, second: Parameters<typeof add>)
test/types-test.spec.ts:138
↓ 1 callersFunctionisShallowEqual
(array1: Array<any>, array2: Array<any>)
test/memoize-one.spec.ts:211
↓ 1 callersFunctionmeasure
(scenario: string, version: Version)
benchmarks/comparison/run.ts:11
↓ 1 callersFunctionmedian
(values: number[])
benchmarks/comparison/run.ts:16
↓ 1 callersFunctionrequiresASubtractFn
(fn: SubtractFn)
test/memoize-one.spec.ts:841
↓ 1 callersFunctionrunFor
(ms: number, onSample?: (ns: number) => void)
benchmarks/comparison/worker.ts:13
↓ 1 callersFunctionslowFn
()
benchmarks/library-comparison/index.js:47
↓ 1 callersFunctionspread
(values: number[])
benchmarks/comparison/run.ts:41
↓ 1 callersFunctionwithDeepEqual
(fn: TFunc)
test/types-test.spec.ts:49
FunctionFoo
(this: HasBar, bar: string)
test/memoize-one.spec.ts:278
Functionadd
(first: number, second: number)
test/types-test.spec.ts:26
Functionadd
(a: number, b: number, c: number)
benchmarks/comparison/scenarios.ts:34
FunctionaddEqual
(newArgs, lastArgs)
test/types-test.spec.ts:310
FunctionanyEqual
()
test/types-test.spec.ts:302
FunctionareInputsEqualV6
( newInputs: readonly unknown[], lastInputs: readonly unknown[], )
benchmarks/comparison/v6.ts:24
FunctioncheckTypes
()
test/types-test.spec.ts:269
Functionfoo
()
test/memoize-one.spec.ts:331
FunctiongetA
(this: { a: number })
test/types-test.spec.ts:262
FunctiongetA
(this: HasA | null | undefined)
test/memoize-one.spec.ts:14
FunctiongetLocation
(this: Window, value: number)
test/types-test.spec.ts:13
FunctiongetResult
()
test/memoize-one.spec.ts:440
FunctionignoreLastArg
(newArgs, lastArgs)
test/types-test.spec.ts:286
FunctionmemoizeOneV6
( resultFn: TFunc, isEqual: EqualityFn = areInputsEqualV6, )
benchmarks/comparison/v6.ts:52
Functionresolver
(...args)
benchmarks/library-comparison/index.js:24
FunctionstringEqual
()
test/types-test.spec.ts:318
Functionsubtract
(a: number, b: number)
test/memoize-one.spec.ts:840
FunctionwillThrow
(message: string)
test/memoize-one.spec.ts:697