UNPKG

holyfills

Version:

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

11 lines (9 loc) 237 B
"use strict"; // ES5 9.9 // http://es5.github.com/#x9.9 module.exports = function (o) { if (o == null) { // this matches both null and undefined throw new TypeError("can't convert " + o + " to object"); } return Object(o); };