lib/util.js
function (entityV1, type) {
        if (!entityV1) { return; }

        switch (type) {
            case 'event':
                return !(entityV1.tests || entityV1.preRequestScript);
            case 'auth':
                return _.has(entityV1, 'auth') && !(_.has(entityV1, 'currentHelper') || entityV1.helperAttributes);
            default:
                return true;
        }
    }
function (entityV1, type) {
        if (!entityV1) { return; }

        switch (type) {
            case 'event':
                return !(entityV1.tests || entityV1.preRequestScript);
            case 'auth':
                return _.has(entityV1, 'auth') && !(_.has(entityV1, 'currentHelper') || entityV1.helperAttributes);
            default:
                return true;
        }
    }
function ( entityV1 , type ) { if ( ! entityV1 ) { return ; } switch ( type ) { case 'event' : return ! ( entityV1 . tests || entityV1 . preRequestScript ) ; case 'auth' : return _ . has ( entityV1 , 'auth' ) && ! ( _ . has ( entityV1 , 'currentHelper' ) || entityV1 . helperAttributes ) ; default : return true ; } }
A helper function to determine if the provided v1 entity has legacy properties.

@private
@param {Object} entityV1 - The v1 entity to be checked for the presence of legacy properties.
@param {String} type - The type of property to be adjudged against.
@returns {Boolean|*} - A flag to indicate the legacy property status of the passed v1 entity.
A helper function to determine if the provided v1 entity has legacy properties .