UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

18 lines (16 loc) 303 B
// @ts-nocheck /** * @param value * @param keys */ export default function expandToHashMap<T extends number | string | boolean, K extends string>( value: T, keys: K[] ): { [key: string]: T; } { return keys.reduce((hashMap, key) => { hashMap[key] = value; return hashMap; }, {}); }