mirror of
https://github.com/neon443/neon443.github.io.git
synced 2026-03-11 07:09:12 +00:00
10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
Function.prototype.bind = Function.prototype.bind || function (target) {
|
|
var self = this;
|
|
return function (args) {
|
|
if (!(args instanceof Array)) {
|
|
args = [args];
|
|
}
|
|
self.apply(target, args);
|
|
};
|
|
};
|