πŸ“’ LocalStorage Side Note

"todos" = ["adfasdf", "adfasdf", "dfgdgf"]
"projects" = [1,2]

"tags" = ['important', 'low','family','work']
"tags:0:todos" = ["sdfsf", "sdasdasd", "werwer"]
"tags:1:todos" = ["sdfsf", "sdasdasd", "werwer"]
"tags:2:todos" = ["sdfsf", "sdasdasd", "werwer"]
"tags:3:todos" = ["sdfsf", "sdasdasd", "werwer"]

"lists:1:tags" = [0,3]

"lists:4:tags" = [0,4]

"projects:1"
"projects:1:lists" = [1,4,5]
"projects:1:list:1" = {name:"hi", priority:1}
"projects:1:list:1:todos" = ["adfasdf", "adfasdf", "dfgdgf"]

"list:{lastIndex+1}" = []

"lists" = [1,4,5]

"lastIndex" = 4
"list:1" = {name:"hi", priority:1}
"list:1:todos" = ["adfasdf", "adfasdf", "dfgdgf"]
"list:4" = ["adfasdf", "adfasdf", "dfgdgf"]

Updated: less than a minute ago Print


πŸ’¬ Discussion

no comments yet.

Please login to chat.