src/entity_set/source.js
function pushComponent(pushable, component, cdefMap, isAnonymous = false, options) {
    // if( cdefMap ){
    let json = component.toJSON({ cdefMap });
    if (isAnonymous) {
        delete json[ENTITY_ID];
        delete json[COMPONENT_ID];
    }
    return pushable.push([json, options]);
    // }

    // pushable.push( component );
}
function pushComponent(pushable, component, cdefMap, isAnonymous = false, options) {
    // if( cdefMap ){
    let json = component.toJSON({ cdefMap });
    if (isAnonymous) {
        delete json[ENTITY_ID];
        delete json[COMPONENT_ID];
    }
    return pushable.push([json, options]);
    // }

    // pushable.push( component );
}
function pushComponent ( pushable , component , cdefMap , isAnonymous = false , options ) { // if( cdefMap ){ let json = component . toJSON ( { cdefMap } ) ; if ( isAnonymous ) { delete json [ ENTITY_ID ] ; delete json [ COMPONENT_ID ] ; } return pushable . push ( [ json , options ] ) ; // } // pushable.push( component ); }
Push details of the component to the Pushable stream

@param {*} pushable
@param {*} component
@param {*} cdefMap
@param {*} isAnonymous
Push details of the component to the Pushable stream