1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-26 21:56:37 +00:00

Add Object.values polyfill (#858)

This commit is contained in:
Andrey
2018-02-02 02:16:53 +02:00
committed by Paulus Schoutsen
parent 384d5fc8a9
commit da807dc508

View File

@@ -3,3 +3,7 @@ import 'unfetch/polyfill';
import objAssign from 'es6-object-assign';
objAssign.polyfill();
if (Object.values === undefined) {
Object.values = target => Object.keys(target).map(key => target[key]);
}