function* divider(value) {
    // Create a mutable copy of the base.
    let denominator = DIGIT_GROUPING_BASE;
    while (true) {
        const result = value / denominator;
        if (result < 1) {
            // End of operation. We can't divide the value any further.
            return;
        }
        yield result;
        // The denominator is increased every iteration by multiplying
        // the base by itself, until a decimal value remains.
        denominator *= DIGIT_GROUPING_BASE;
    }
}
/**
 * Generator that divides a number until a decimal value is found.
 *
 * The denominator is defined by the numerical digit grouping base,
 * or interval. The most commonly-used digit group interval is 1000.
 *
 * e.g. 1,000,000 is grouped in multiples of 1000.
 */
Generator that divides a number until a decimal value is found.
The denominator is defined by the numerical digit grouping base,
or interval. The most commonly-used digit group interval is 1000.


Generator that divides a number until a decimal value is found . The denominator is defined by the numerical digit grouping base or interval . The most commonly - used digit group interval is 1000 .
function* divider(value) {
    let denominator = DIGIT_GROUPING_BASE;
    while (true) {
        const result = value / denominator;
        if (result < 1) {
            return;
        }
        yield result;
        denominator *= DIGIT_GROUPING_BASE;
    }
}
function * divider ( value ) { let denominator = DIGIT_GROUPING_BASE ; while ( true ) { const result = value / denominator ; if ( result < 1 ) { return ; } yield result ; denominator *= DIGIT_GROUPING_BASE ; } }
Generator that divides a number until a decimal value is found.
Generator that divides a number until a decimal value is found .
// Create a mutable copy of the base. // End of operation. We can't divide the value any further. // The denominator is increased every iteration by multiplying // the base by itself, until a decimal value remains.