since you asked so nicely

This commit is contained in:
byte[] 2020-12-10 01:30:41 -05:00
parent 4c289510a7
commit 214173095c
2 changed files with 14 additions and 0 deletions

View file

@ -11,6 +11,7 @@ import './vendor/fetch.polyfill';
import './vendor/closest.polyfill'; import './vendor/closest.polyfill';
import './vendor/customevent.polyfill'; import './vendor/customevent.polyfill';
import './vendor/es6.polyfill'; import './vendor/es6.polyfill';
import './vendor/values-entries.polyfill';
// Our code // Our code
import './ujs'; import './ujs';

View file

@ -0,0 +1,13 @@
// object-values | MIT | github.com/tc39/proposal-object-values-entries
if (!Object.values) {
Object.values = function values(O) {
return reduce(keys(O), (v, k) => concat(v, typeof k === 'string' && isEnumerable(O, k) ? [O[k]] : []), []);
};
}
if (!Object.entries) {
Object.entries = function entries(O) {
return reduce(keys(O), (e, k) => concat(e, typeof k === 'string' && isEnumerable(O, k) ? [[k, O[k]]] : []), []);
};
}