source: imaps-frontend/node_modules/@popperjs/core/lib/utils/expandToHashMap.js.flow

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 246 bytes
Line 
1// @flow
2
3export default function expandToHashMap<
4 T: number | string | boolean,
5 K: string
6>(value: T, keys: Array<K>): { [key: string]: T } {
7 return keys.reduce((hashMap, key) => {
8 hashMap[key] = value;
9 return hashMap;
10 }, {});
11}
Note: See TracBrowser for help on using the repository browser.