Created
January 17, 2018 14:26
-
-
Save johnie/e3b85c4225eaab7f25b9ce99172260c3 to your computer and use it in GitHub Desktop.
Array from simple polyfill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!Array.from) { | |
Array.from = function (object) { | |
'use strict'; | |
return [].slice.call(object); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment