docs/vendor.js
function i18nInterpolation2(instructions, v0, v1) {
    var different = bindingUpdated2(v0, v1);
    if (!different) {
        return NO_CHANGE;
    }
    var res = '';
    for (var i = 0; i < instructions.length; i++) {
        // Odd indexes are bindings
        if (i & 1) {
            // Extract bits
            var idx = instructions[i];
            var b1 = idx & 1;
            // Get the value from the argument vx where x = idx
            var value = b1 ? v1 : v0;
            res += stringify$1(value);
        }
        else {
            res += instructions[i];
        }
    }
    return res;
}
function i18nInterpolation2(instructions, v0, v1) {
    var different = bindingUpdated2(v0, v1);
    if (!different) {
        return NO_CHANGE;
    }
    var res = '';
    for (var i = 0; i < instructions.length; i++) {
        // Odd indexes are bindings
        if (i & 1) {
            // Extract bits
            var idx = instructions[i];
            var b1 = idx & 1;
            // Get the value from the argument vx where x = idx
            var value = b1 ? v1 : v0;
            res += stringify$1(value);
        }
        else {
            res += instructions[i];
        }
    }
    return res;
}
function i18nInterpolation2 ( instructions , v0 , v1 ) { var different = bindingUpdated2 ( v0 , v1 ) ; if ( ! different ) { return NO_CHANGE ; } var res = '' ; for ( var i = 0 ; i < instructions . length ; i ++ ) { // Odd indexes are bindings if ( i & 1 ) { // Extract bits var idx = instructions [ i ] ; var b1 = idx & 1 ; // Get the value from the argument vx where x = idx var value = b1 ? v1 : v0 ; res += stringify$1 ( value ) ; } else { res += instructions [ i ] ; } } return res ; }
Checks if the values of up to 2 expressions have changed and replaces them by their values in a
translation, or returns NO_CHANGE.

@param instructions A list of instructions that will be used to translate an attribute.
@param v0 value checked for change.
@param v1 value checked for change.

@returns The concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.
Checks if the values of up to 2 expressions have changed and replaces them by their values in a translation or returns NO_CHANGE .