src/VegaWrapper.js
function removeColon(protocol) {
    return protocol && protocol.length && protocol[protocol.length - 1] === ':'
        ? protocol.substring(0, protocol.length - 1) : protocol;
}
function removeColon(protocol) {
    return protocol && protocol.length && protocol[protocol.length - 1] === ':'
        ? protocol.substring(0, protocol.length - 1) : protocol;
}
function removeColon ( protocol ) { return protocol && protocol . length && protocol [ protocol . length - 1 ] === ':' ? protocol . substring ( 0 , protocol . length - 1 ) : protocol ; }
Utility function to remove trailing colon from a protocol
@param {string} protocol
@return {string}
Utility function to remove trailing colon from a protocol