You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/assets/javascripts/misc.js

11 lines
235 B
JavaScript

Function.prototype.bind = function(object) {
var func = this;
return function() {
return func.apply(object, arguments);
};
};
String.prototype.times = function(n) {
return Array.prototype.join.call({length:n+1}, this);
};