Note: This feature is available in Web Workers.
The forEach() method of the FontFaceSet interface executes a provided function for each value in the FontFaceSet object.
forEach(callbackFn)
forEach(callbackFn, thisArg)callbackFnFunction to execute for each element, taking three arguments:
value, keyThe current element being processed in the FontFaceSet. As there are no keys in a FontFaceSet, the value is passed for both arguments.
setThe FontFaceSet which forEach() was called on.
thisArg OptionalValue to use as this when executing callbackFn. Defaults to undefined.