mirror of
https://github.com/gchq/CyberChef
synced 2025-12-10 13:23:25 +00:00
use .fill to initialise Arrays
This commit is contained in:
@@ -397,9 +397,7 @@ const StrUtils = {
|
||||
}
|
||||
|
||||
// Initialise output strings
|
||||
for (s = 0; s < samples.length; s++) {
|
||||
outputs[s] = "";
|
||||
}
|
||||
outputs.fill("", 0, samples.length);
|
||||
|
||||
// Loop through each character in the first sample
|
||||
for (i = 0; i < samples[0].length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user