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.
11 lines
235 B
JavaScript
11 lines
235 B
JavaScript
13 years ago
|
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);
|
||
|
};
|