Revela-Games/2048/js/bind_polyfill.js
2023-03-31 14:04:34 -04:00

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