Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
4
node_modules/es-shim-unscopables/index.js
generated
vendored
4
node_modules/es-shim-unscopables/index.js
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var has = require('has');
|
||||
var hasOwn = require('hasown');
|
||||
|
||||
var hasUnscopables = typeof Symbol === 'function' && typeof Symbol.unscopables === 'symbol';
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ module.exports = function shimUnscopables(method) {
|
|||
if (typeof method !== 'string' || !method) {
|
||||
throw new $TypeError('method must be a non-empty string');
|
||||
}
|
||||
if (!has(Array.prototype, method)) {
|
||||
if (!hasOwn(Array.prototype, method)) {
|
||||
throw new $TypeError('method must be on Array.prototype');
|
||||
}
|
||||
if (hasUnscopables) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue