11 lines
292 B
Plaintext
11 lines
292 B
Plaintext
|
'use strict';
|
||
|
|
||
|
var arrayMethodBoxesProperly = require('es-array-method-boxes-properly');
|
||
|
|
||
|
var implementation = require('./implementation');
|
||
|
|
||
|
module.exports = function getPolyfill() {
|
||
|
var method = Array.prototype.filter;
|
||
|
return arrayMethodBoxesProperly(method) ? method : implementation;
|
||
|
};
|