lib/collection/cookie.js
function (param) {
        var split = param.split('='),
            key, value;
        key = split[0].trim();
        value = (split[1]) ? split[1].trim() : true;

        if (_.isString(value) && value[0] === '"') {
            value = value.slice(1, -1);
        }

        return { key: key, value: value };
    }
function (param) {
        var split = param.split('='),
            key, value;
        key = split[0].trim();
        value = (split[1]) ? split[1].trim() : true;

        if (_.isString(value) && value[0] === '"') {
            value = value.slice(1, -1);
        }

        return { key: key, value: value };
    }
function ( param ) { var split = param . split ( '=' ) , key , value ; key = split [ 0 ] . trim ( ) ; value = ( split [ 1 ] ) ? split [ 1 ] . trim ( ) : true ; if ( _ . isString ( value ) && value [ 0 ] === '"' ) { value = value . slice ( 1 , - 1 ) ; } return { key : key , value : value } ; }
Splits a Cookie parameter into a key and a value

@private
@param {String} param
@returns {{key: *, value: (boolean|*)}}
Splits a Cookie parameter into a key and a value