Skip to content

Instantly share code, notes, and snippets.

Last active December 9, 2020 01:42
What would you like to do?
Array.from polyfill (see also )
* @license MIT, GPL, do whatever you want
* @requires polyfill: Array.prototype.slice fix {@link}
if (!Array.from) {
Array.from = function (object) {
'use strict';
return [];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment