aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-11 20:44:51 +0200
committerGitHub <[email protected]>2023-10-11 20:44:51 +0200
commit201d6e30f536c2c1f934270d2c97239522df1926 (patch)
treeb4652b01518a8bfeebc51d01a070e0163e94794f /scripts
parent6cb5aa25f676c7f43fd543e1738e71f54ea5fc6f (diff)
downloadfaker-201d6e30f536c2c1f934270d2c97239522df1926.tar.xz
faker-201d6e30f536c2c1f934270d2c97239522df1926.zip
infra(unicorn): no-array-for-each (#2461)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/apidoc/parameterDefaults.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/apidoc/parameterDefaults.ts b/scripts/apidoc/parameterDefaults.ts
index 7e02afc6..34264b05 100644
--- a/scripts/apidoc/parameterDefaults.ts
+++ b/scripts/apidoc/parameterDefaults.ts
@@ -130,8 +130,7 @@ function patchSignatureParameterDefaults(
throw new Error('Unexpected parameter length mismatch');
}
- signatureParameters.forEach(
- (param, index) =>
- (param.defaultValue = parameterDefaults[index] || param.defaultValue)
- );
+ for (const [index, param] of signatureParameters.entries()) {
+ param.defaultValue = parameterDefaults[index] || param.defaultValue;
+ }
}