The options for comparing active names.
A promise that resolves when the comparison is complete.
const options = {
restart: false,
parameters: {
getUpdatedAllParams: getUpdatedAllParamsFunction,
activeNames: ['name1', 'name2'],
prevActiveNames: ['name1'],
updatePrevActiveNames: updatePrevActiveNamesFunction,
trigger: triggerFunction,
},
};
compareActiveNames(options)
.then(() => {
console.log('Active names compared successfully');
});
Compares the current active names with the previous active names and triggers an action if there are changes.