Skip to main content

findIndexForField

还没翻译译自英文(tanstack.com)本页 15 段都还没译

function findIndexForField<TKey>(
   collection, 
   fieldPath, 
   compareOptions?): IndexReader<TKey> | undefined;

Defined in: packages/db/src/utils/index-optimization.ts:45

Finds an index that matches a given field path

Type Parameters

TKey

TKey extends string | number

Parameters

collection

CollectionLike<any, TKey>

fieldPath

string[]

compareOptions?

CompareOptions

Returns

IndexReader<TKey> | undefined