Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexreardon/memoize-one
/ functions
Functions
37 in github.com/alexreardon/memoize-one
⨍
Functions
37
◇
Types & classes
1
↓ 5 callers
Function
memoizeOne
( resultFn: TFunc, // `TFunc & {}` makes TypeScript infer `TFunc` from `resultFn` first. Without it, an
src/memoize-one.ts:68
↓ 4 callers
Function
isEqual
(first: unknown, second: unknown)
benchmarks/comparison/v6.ts:11
↓ 4 callers
Function
memoized
( this: ThisParameterType<TFunc>, ...newArgs: Parameters<TFunc> )
src/memoize-one.ts:80
↓ 2 callers
Function
areInputsEqual
( newInputs: readonly unknown[], lastInputs: readonly unknown[], )
src/memoize-one.ts:41
↓ 2 callers
Function
fn
()
benchmarks/comparison/scenarios.ts:15
↓ 2 callers
Function
format
(value: number)
benchmarks/comparison/run.ts:21
↓ 2 callers
Function
memoized
( this: ThisParameterType<TFunc>, ...newArgs: Parameters<TFunc> )
benchmarks/comparison/v6.ts:58
↓ 1 callers
Function
caller
(fn: typeof add)
test/types-test.spec.ts:65
↓ 1 callers
Function
clone
(person: Person)
test/memoize-one.spec.ts:602
↓ 1 callers
Function
compare
(newInputs: unknown[], lastInputs: unknown[])
benchmarks/comparison/scenarios.ts:21
↓ 1 callers
Function
isEqual
(first: Parameters<typeof add>, second: Parameters<typeof add>)
test/types-test.spec.ts:138
↓ 1 callers
Function
isShallowEqual
(array1: Array<any>, array2: Array<any>)
test/memoize-one.spec.ts:211
↓ 1 callers
Function
measure
(scenario: string, version: Version)
benchmarks/comparison/run.ts:11
↓ 1 callers
Function
median
(values: number[])
benchmarks/comparison/run.ts:16
↓ 1 callers
Function
requiresASubtractFn
(fn: SubtractFn)
test/memoize-one.spec.ts:841
↓ 1 callers
Function
runFor
(ms: number, onSample?: (ns: number) => void)
benchmarks/comparison/worker.ts:13
↓ 1 callers
Function
slowFn
()
benchmarks/library-comparison/index.js:47
↓ 1 callers
Function
spread
(values: number[])
benchmarks/comparison/run.ts:41
↓ 1 callers
Function
withDeepEqual
(fn: TFunc)
test/types-test.spec.ts:49
Function
Foo
(this: HasBar, bar: string)
test/memoize-one.spec.ts:278
Function
add
(first: number, second: number)
test/types-test.spec.ts:26
Function
add
(a: number, b: number, c: number)
benchmarks/comparison/scenarios.ts:34
Function
addEqual
(newArgs, lastArgs)
test/types-test.spec.ts:310
Function
anyEqual
()
test/types-test.spec.ts:302
Function
areInputsEqualV6
( newInputs: readonly unknown[], lastInputs: readonly unknown[], )
benchmarks/comparison/v6.ts:24
Function
checkTypes
()
test/types-test.spec.ts:269
Function
foo
()
test/memoize-one.spec.ts:331
Function
getA
(this: { a: number })
test/types-test.spec.ts:262
Function
getA
(this: HasA | null | undefined)
test/memoize-one.spec.ts:14
Function
getLocation
(this: Window, value: number)
test/types-test.spec.ts:13
Function
getResult
()
test/memoize-one.spec.ts:440
Function
ignoreLastArg
(newArgs, lastArgs)
test/types-test.spec.ts:286
Function
memoizeOneV6
( resultFn: TFunc, isEqual: EqualityFn = areInputsEqualV6, )
benchmarks/comparison/v6.ts:52
Function
resolver
(...args)
benchmarks/library-comparison/index.js:24
Function
stringEqual
()
test/types-test.spec.ts:318
Function
subtract
(a: number, b: number)
test/memoize-one.spec.ts:840
Function
willThrow
(message: string)
test/memoize-one.spec.ts:697