interpreter/index.js
function _entityToValue(item, lib) {
    if (typeof item === JS_STRING_TYPE) {
        // Only JSON-serializable entities may be put into a list
        var constant = lib.lookupConstant(item);
        if (constant !== undefined) return constant;
    }
    // Also unquote any item we got that also happens to be a quote
    if (item && item[RUNIQ_QUOTED_ENTITY_PROP_NAME]) {
        return item[RUNIQ_QUOTED_ENTITY_PROP_NAME];
    }
    return item;
}
function _entityToValue(item, lib) {
    if (typeof item === JS_STRING_TYPE) {
        // Only JSON-serializable entities may be put into a list
        var constant = lib.lookupConstant(item);
        if (constant !== undefined) return constant;
    }
    // Also unquote any item we got that also happens to be a quote
    if (item && item[RUNIQ_QUOTED_ENTITY_PROP_NAME]) {
        return item[RUNIQ_QUOTED_ENTITY_PROP_NAME];
    }
    return item;
}
function _entityToValue ( item , lib ) { if ( typeof item === JS_STRING_TYPE ) { // Only JSON-serializable entities may be put into a list var constant = lib . lookupConstant ( item ) ; if ( constant !== undefined ) return constant ; } // Also unquote any item we got that also happens to be a quote if ( item && item [ RUNIQ_QUOTED_ENTITY_PROP_NAME ] ) { return item [ RUNIQ_QUOTED_ENTITY_PROP_NAME ] ; } return item ; }
Convert a given entity to a value, if one is defined in the lib
Convert a given entity to a value if one is defined in the lib