MCPcopy Create free account
hub / github.com/chavyleung/scripts / isExistsInNew

Function isExistsInNew

chavy.box.js:1144–1144  ·  view source on GitHub ↗
(backupId)

Source from the content-addressed store, hash-verified

1142 let newbaks = $.getjson($.KEY_backups, [])
1143 const isEmpty = (bak) => [undefined, null, ''].includes(bak)
1144 const isExistsInNew = (backupId) => newbaks.find((bak) => bak.id === backupId)
1145
1146 // 存在旧备份数据时, 升级备份数据格式
1147 if (!isEmpty(oldbaks)) {

Callers 1

upgradeGlobalBaksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected