if (!Array.prototype.print) { // eslint-disable-next-line no-extend-native Array.prototype.print = function () { if (this == null) { throw new TypeError("this is null or not defined") } console.log(this) return this } }