当我创建本地存储时
await localStorage.setItem(item_id,JSON.stringify(products));
我有垃圾值 debugbar-time
,debugbar-time-new
我像这种情况一样处理这些垃圾值
if (x != 'debugbar-time-new' && x != 'debugbar-time' && x != '__mycart' && x!= 'favorite_tables')
但有时这些值会发生变化,例如 _mycart
、favorite_tables
并且我没有在我的项目中使用这些词。我该如何处理这些垃圾值?