UNPKG

holyfills

Version:

No more "Holy Sxxt!!" when writting ES5/ES6

14 lines (12 loc) 259 B
exports.createArrayLikeFromArray = function (arr) { var o = {}; Array.prototype.forEach.call(arr, function (e, i) { o[i] = e; }); o.length = arr.length; return o; }; exports.hasStrictMode = (function () { "use strict"; return !this; }());