diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mixed/js/core.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js index 7eb21659..81330893 100644 --- a/ext/mixed/js/core.js +++ b/ext/mixed/js/core.js @@ -67,22 +67,6 @@ function escapeRegExp(string) { return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); } -// toIterable is required on Edge for cross-window origin objects. -function toIterable(value) { - if (typeof Symbol !== 'undefined' && typeof value[Symbol.iterator] !== 'undefined') { - return value; - } - - if (value !== null && typeof value === 'object') { - const length = value.length; - if (typeof length === 'number' && Number.isFinite(length)) { - return Array.from(value); - } - } - - throw new Error('Could not convert to iterable'); -} - function stringReverse(string) { return string.split('').reverse().join('').replace(/([\uDC00-\uDFFF])([\uD800-\uDBFF])/g, '$2$1'); } |