@scandit/web-datacapture-core
Version:
Scandit Data Capture SDK for the Web
15 lines (13 loc) • 498 B
TypeScript
/// <reference types="emscripten" />
/**
* Polyfill for Object.fromEntries() for Chrome 64+ compatibility.
* Object.fromEntries() was introduced in Chrome 73, so this provides
* backward compatibility for Chrome 64-72.
*
* @param entries An iterable object that contains key-value pairs
* @returns A new object whose properties are given by the entries
*/
declare function fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): {
[k: string]: T;
};
export { fromEntries };