Skip to content

[Polyfill needed] Array.from is unsupported in Safari 8 and Internet Explorer #139

@stenbln

Description

@stenbln

Its an awesome library, however, it doesn't work with Safari (I've tested Chrome and Firefox successfully).

This is the error that I get when I try to sort the items:
[Error] TypeError: undefined is not a function (evaluating 'Array.from(arr)')

and this is the line that is apparently causing the problems:
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

Any suggestions on how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions