function subtract(a, b) {
    const newA = {};
    Object.getOwnPropertyNames(a).forEach(name => {
        if (!(name in b)) {
            Object.defineProperty(newA, name, Object.getOwnPropertyDescriptor(a, name));
        }
    });
    return newA;
}
/**
 * Excludes the properties of B from A
 */
Excludes the properties of B from A
Excludes the properties of B from A
function subtract(a, b) {
    const newA = {};
    Object.getOwnPropertyNames(a).forEach(name => {
        if (!(name in b)) {
            Object.defineProperty(newA, name, Object.getOwnPropertyDescriptor(a, name));
        }
    });
    return newA;
}
function subtract ( a , b ) { const newA = { } ; Object . getOwnPropertyNames ( a ) . forEach ( name => { if ( ! ( name in b ) ) { Object . defineProperty ( newA , name , Object . getOwnPropertyDescriptor ( a , name ) ) ; } } ) ; return newA ; }
Excludes the properties of B from A
Excludes the properties of B from A