source: imaps-frontend/node_modules/array-includes/polyfill.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 301 bytes
Line 
1'use strict';
2
3var implementation = require('./implementation');
4
5module.exports = function getPolyfill() {
6 if (
7 Array.prototype.includes
8 && Array(1).includes(undefined) // https://bugzilla.mozilla.org/show_bug.cgi?id=1767541
9 ) {
10 return Array.prototype.includes;
11 }
12 return implementation;
13};
Note: See TracBrowser for help on using the repository browser.