about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util/base_polyfills.js
blob: 7856b26f9d8860422f0e897e252d6b80e566538c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import 'intl';
import 'intl/locale-data/jsonp/en';
import 'es6-symbol/implement';
import includes from 'array-includes';
import assign from 'object-assign';
import isNaN from 'is-nan';

if (!Array.prototype.includes) {
  includes.shim();
}

if (!Object.assign) {
  Object.assign = assign;
}

if (!Number.isNaN) {
  Number.isNaN = isNaN;
}