mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
since you asked so nicely
This commit is contained in:
parent
4c289510a7
commit
214173095c
2 changed files with 14 additions and 0 deletions
|
@ -11,6 +11,7 @@ import './vendor/fetch.polyfill';
|
|||
import './vendor/closest.polyfill';
|
||||
import './vendor/customevent.polyfill';
|
||||
import './vendor/es6.polyfill';
|
||||
import './vendor/values-entries.polyfill';
|
||||
|
||||
// Our code
|
||||
import './ujs';
|
||||
|
|
13
assets/js/vendor/values-entries.polyfill.js
vendored
Normal file
13
assets/js/vendor/values-entries.polyfill.js
vendored
Normal 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]]] : []), []);
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue