UNPKG

@wenn/onb

Version:

onb-core

21 lines (18 loc) 490 B
// for chrome v 53 or lower: // some users try to use the app // with android 6.0 and chrome 52.0.2743.98, // so we need this polyfill Object.entries = typeof Object.entries !== 'function' ? (obj) => Object.keys(obj) .map((key) => [key, obj[key]]) : Object.entries; Object.fromEntries = typeof Object.fromEntries !== 'function' ? (iterable) => [...iterable].reduce((acc, [ key, value ]) => ({ ...acc, [key]: value }), {}) : Object.fromEntries;