Skip to content

Commit

Permalink
547 make Array.flatMap not enumerable (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronluman committed Mar 2, 2021
1 parent 92866af commit 192d772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewares/parsers/schema.preprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ if (!Array.prototype['flatMap']) {
Array.prototype['flatMap'] = function (lambda) {
return Array.prototype.concat.apply([], this.map(lambda));
};
Object.defineProperty(Array.prototype, 'flatMap', { enumerable: false });
}
const httpMethods = new Set([
'get',
Expand Down

0 comments on commit 192d772

Please sign in to comment.