Skip to content

Commit

Permalink
hacks-shims: remove Array.prototype.includes
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Jun 23, 2017
1 parent ac63dcb commit 676c956
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/hack-shims.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
if (!Array.prototype.includes) {
Array.prototype.includes = function(entry) {
return this.indexOf(entry) !== -1;
};
}

if (!Object.values) {
Object.values = function(object) {
return Object.getOwnPropertyNames(object).map(name => object[name]);
Expand Down

0 comments on commit 676c956

Please sign in to comment.