Skip to content

xdash API Reference v0.5.14


xdash API Reference / fillKeys

Function: fillKeys() ​

fillKeys<T, V>(keys, value): Record<T, V>

Defined in: src/typed.ts:84

Fills an array with a value.

Type Parameters ​

T ​

T extends PropertyKey

V ​

V

Parameters ​

keys ​

T[]

keys to fill

value ​

V

value to fill the keys with

Returns ​

Record<T, V>

an object with the keys filled with the value

Released under the MIT License.