xdash / fillKeys
Function: fillKeys()
fillKeys<
T,V>(keys,value):Record<T,V>
Fills an array with a value.
Type parameters
• T extends PropertyKey
• 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