MCPcopy
hub / github.com/remeda/remeda / prop

Function prop

packages/remeda/src/prop.ts:444–453  ·  view source on GitHub ↗
(
  maybeData: NonPropertyKey | PropertyKey,
  ...args: readonly PropertyKey[]
)

Source from the content-addressed store, hash-verified

442): <T extends Partial<Record<K, unknown>>>(data: T) => T[K];
443
444export function prop(
445 maybeData: NonPropertyKey | PropertyKey,
446 ...args: readonly PropertyKey[]
447): unknown {
448 return typeof maybeData === "string" ||
449 typeof maybeData === "number" ||
450 typeof maybeData === "symbol"
451 ? (data: NonPropertyKey) => propImplementation(data, maybeData, ...args)
452 : propImplementation(maybeData, ...args);
453}
454
455function propImplementation(
456 data: NonPropertyKey,

Callers 15

sumBy.test.tsFile · 0.90
indexBy.test.tsFile · 0.90
groupBy.test.tsFile · 0.90
pipe.test.tsFile · 0.90
meanBy.test.tsFile · 0.90
countBy.test.tsFile · 0.90
sortBy.test-d.tsFile · 0.90
prop.test.tsFile · 0.90
indexBy.test-d.tsFile · 0.90
sortBy.test.tsFile · 0.90
pullObject.test.tsFile · 0.90

Calls 1

propImplementationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…