![JAR search and dependency download from the Maven repository](/logo.png)
package.lib.utils.expandToHashMap.js.flow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Tooltip and Popover Positioning Engine
// @flow
export default function expandToHashMap<
T: number | string | boolean,
K: string
>(value: T, keys: Array): { [key: string]: T } {
return keys.reduce((hashMap, key) => {
hashMap[key] = value;
return hashMap;
}, {});
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy