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

Function isExistsInNew

box/chavy.boxjs.js:1142–1142  ·  view source on GitHub ↗
(backupId)

Source from the content-addressed store, hash-verified

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

Callers 1

upgradeGlobalBaksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected