The forEach() method of the CustomStateSet interface executes a provided function for each value in the CustomStateSet object.
forEach(callbackFn)
forEach(callbackFn, thisArg)callbackFnFunction to execute for each element, taking three arguments:
value, keyThe current element being processed in the CustomStateSet. As there are no keys in a CustomStateSet, the value is passed for both arguments.
setThe CustomStateSet which forEach() was called upon.
thisArgValue to use as this when executing callbackFn.
Undefined.