Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
9
node_modules/concordance/lib/getObjectKeys.js
generated
vendored
9
node_modules/concordance/lib/getObjectKeys.js
generated
vendored
|
|
@ -10,13 +10,11 @@ function getObjectKeys (obj, excludeListItemAccessorsBelowLength) {
|
|||
// possible.
|
||||
const symbolCandidates = Object.getOwnPropertySymbols(obj)
|
||||
|
||||
for (let i = 0; i < nameCandidates.length; i++) {
|
||||
const name = nameCandidates[i]
|
||||
|
||||
for (const name of nameCandidates) {
|
||||
let accept = true
|
||||
if (excludeListItemAccessorsBelowLength > 0) {
|
||||
const index = Number(name)
|
||||
accept = (index % 1 !== 0) || index >= excludeListItemAccessorsBelowLength
|
||||
accept = !Number.isInteger(index) || index < 0 || index >= excludeListItemAccessorsBelowLength
|
||||
}
|
||||
|
||||
if (accept && Object.getOwnPropertyDescriptor(obj, name).enumerable) {
|
||||
|
|
@ -24,8 +22,7 @@ function getObjectKeys (obj, excludeListItemAccessorsBelowLength) {
|
|||
}
|
||||
}
|
||||
|
||||
for (let i = 0; i < symbolCandidates.length; i++) {
|
||||
const symbol = symbolCandidates[i]
|
||||
for (const symbol of symbolCandidates) {
|
||||
if (Object.getOwnPropertyDescriptor(obj, symbol).enumerable) {
|
||||
keys[size++] = symbol
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue