CO
H
Probably something with regex looking for numbers
const justificationKeys = Object.keys(evalData).filter((key) =>
key.match(/(.+?)(\d+)(?: Value| Comment)?/)
);
const maxIndices = {};
justificationKeys.forEach((fullKey) => {
const match = fullKey.match(/(.+?)(\d+)(?: Value| Comment)?/);
if (match) {
CO
H
Probably something with
regexlooking for numbers