def __translateToJS(code):
    
    if code is None:
        pass
    elif code is True:
        code = "true"
    elif code is False:
        code = "false"
    elif type(code) is str and code.startswith("{") and code.endswith("}"):
        pass
    elif type(code) is str and code.startswith("[") and code.endswith("]"):
        pass
    else:
        code = "\"%s\"" % code
        
    return code
Returns the code equivalent of the stored value for the given key
dataset/ETHPy150Open zynga/jasy/jasy/js/clean/Permutate.py/__translateToJS