fix(config): add object.entries polyfil

This commit is contained in:
mhartington
2018-04-26 10:06:26 -04:00
parent 9c7b0ca15f
commit c917a3cd48
2 changed files with 12 additions and 1 deletions

View File

@ -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 {