mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(config): add object.entries polyfil
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
import { entries } from '../utils/helpers';
|
||||
|
||||
export class Config {
|
||||
|
||||
private m: Map<string, any>;
|
||||
|
||||
constructor(configObj: {[key: string]: any}) {
|
||||
this.m = new Map<string, any>(Object.entries(configObj));
|
||||
this.m = new Map<string, any>(entries(configObj));
|
||||
|
||||
}
|
||||
|
||||
get(key: string, fallback?: any): any {
|
||||
|
Reference in New Issue
Block a user