PromoCursed/node_modules/core-js/internals/array-method-is-strict.js
2024-08-20 23:25:37 +04:00

11 lines
329 B
JavaScript

'use strict';
var fails = require('../internals/fails');
module.exports = function (METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails(function () {
// eslint-disable-next-line no-useless-call -- required for testing
method.call(null, argument || function () { return 1; }, 1);
});
};