MCPcopy
hub / github.com/chavyleung/scripts / isExistsInNew

Function isExistsInNew

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

Source from the content-addressed store, hash-verified

1083 let newbaks = $.getjson($.KEY_backups, [])
1084 const isEmpty = (bak) => [undefined, null, ''].includes(bak)
1085 const isExistsInNew = (backupId) => newbaks.find((bak) => bak.id === backupId)
1086
1087 // 存在旧备份数据时, 升级备份数据格式
1088 if (!isEmpty(oldbaks)) {

Callers 1

upgradeGlobalBaksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…