Use Array.includes

a7e8d00145dfecd63fb055c7990c7bea443e32f5

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/instruct-mode.js+1 -1
@@ -432,7 +432,7 @@ export function formatInstructModeExamples(mesExamplesArray, name1, name2) {
432432 }
433433
434434 const includeNames = power_user.instruct.names_behavior === names_behavior_types.ALWAYS;
435435 const includeGroupNames = selected_group && (includeNames ||[names_behavior_types.ALWAYS, names_behavior_types.FORCE].includes(power_user.instruct.names_behavior === names_behavior_types.FORCE);
436436
437437 let inputPrefix = power_user.instruct.input_sequence || '';
438438 let outputPrefix = power_user.instruct.output_sequence || '';