Add supporting themes required for Lotusdocs
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// @flow
|
||||
|
||||
export default function expandToHashMap<
|
||||
T: number | string | boolean,
|
||||
K: string
|
||||
>(value: T, keys: Array<K>): { [key: string]: T } {
|
||||
return keys.reduce((hashMap, key) => {
|
||||
hashMap[key] = value;
|
||||
return hashMap;
|
||||
}, {});
|
||||
}
|
||||
Reference in New Issue
Block a user