Files
monkeygg2.github.io/games/2048/js/bind_polyfill.js
T
2023-08-25 13:31:04 +05:30

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);
};
};