Skip to main content

makeObjectMap

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

function makeObjectMap<TValue>(): Record<string, TValue>;

Defined in: utils.ts:81

Creates an object intended only for string-keyed dictionary lookups.

The null prototype keeps user-controlled ids such as __proto__ and hasOwnProperty as plain data keys.

Type Parameters

TValue

TValue = unknown

Returns

Record<string, TValue>