mergeStandard(current, incoming = []) {
            return (
                current
                    // first update any existing variables which have a blank value but exist in the incoming object
                    .map((current) => {
                        // don't touch entries which already have a value
                        if (current.value) return current;

                        const match = incoming.find(
                            (i) => i.key === current.key
                        );
                        if (!match) return current;

                        // we found a match and the existing is null, so output the match
                        return match;
                    })
                    // now append any incoming variables which do not exist in the current env
                    .concat(
                        incoming.filter(
                            (incoming) =>
                                !current.some(
                                    (current) => current.key === incoming.key
                                )
                        )
                    )
            );
        }
/**
         * Return a list of environment objects constructed from the existing list joined with an incoming list
         * @param {Var[]} current
         * @param {Var[] | undefined} incoming
         */
Return a list of environment objects constructed from the existing list joined with an incoming list
@param {Var[]} current
@param {Var[] | undefined} incoming
Return a list of environment objects constructed from the existing list joined with an incoming list @param { Var [] } current @param { Var [] | undefined } incoming
mergeStandard(current, incoming = []) {
            return (
                current
                    .map((current) => {
                        if (current.value) return current;
                        const match = incoming.find(
                            (i) => i.key === current.key
                        );
                        if (!match) return current;
                        return match;
                    })
                    .concat(
                        incoming.filter(
                            (incoming) =>
                                !current.some(
                                    (current) => current.key === incoming.key
                                )
                        )
                    )
            );
        }
mergeStandard ( current , incoming = [ ] ) { return ( current . map ( ( current ) => { if ( current . value ) return current ; const match = incoming . find ( ( i ) => i . key === current . key ) ; if ( ! match ) return current ; return match ; } ) . concat ( incoming . filter ( ( incoming ) => ! current . some ( ( current ) => current . key === incoming . key ) ) ) ) ; }
Return a list of environment objects constructed from the existing list joined with an incoming list
 @param {Var[]} current
 @param {Var[] | undefined} incoming
Return a list of environment objects constructed from the existing list joined with an incoming list @param { Var [] } current @param { Var [] | undefined } incoming
// first update any existing variables which have a blank value but exist in the incoming object // don't touch entries which already have a value // we found a match and the existing is null, so output the match // now append any incoming variables which do not exist in the current env