Create an object from an iterable of key/value pairs.
The iterable object of interest.
A new object mapping keys to values.
import { toObject } from '@lumino/algorithm';let data: [string, number][] = [['one', 1], ['two', 2], ['three', 3]];toObject(data); // { one: 1, two: 2, three: 3 } Copy
import { toObject } from '@lumino/algorithm';let data: [string, number][] = [['one', 1], ['two', 2], ['three', 3]];toObject(data); // { one: 1, two: 2, three: 3 }
Create an object from an iterable of key/value pairs.