UNPKG

rxjs

Version:

Reactive Extensions for modern JavaScript

4 lines (3 loc) 154 B
export function createObject(keys: string[], values: any[]) { return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {} as any); }