remove object map function

This commit is contained in:
John Alanbrook 2024-09-15 00:13:49 -05:00
parent 52b72931fc
commit e7a3a8597b

View file

@ -620,16 +620,6 @@ Object.defineProperty(Object.prototype, 'forEach', {
} }
}); });
Object.defineProperty(Object.prototype, 'map', {
value: function(fn) {
var a = [];
Object.values(this).forEach(function(x) {
a.push(fn(x));
});
return a;
}
});
Object.empty = function(obj) { Object.empty = function(obj) {
return Object.keys(obj).length === 0; return Object.keys(obj).length === 0;
} }