The reduceRight() method applies a function against an accumulator and each value of the array (from right-to-left) has to reduce it to a single value.
The next() method returns an object with two properties done and value. You can also provide a parameter to the next method to send a value to the generator.
The GeneratorFunction constructor creates a new generator function object. In JavaScript every generator function is actually a GeneratorFunction object.
The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.
The entries() method returns a new Iterator object that contains an array of [value, value] for each element in the Set object, in insertion order. For Set objects there is no key like in Map objects. However, to keep the API similar to the Map object, each entry has the same value for its key and value here, so that an array [value, value] is returned.