MCPcopy Create free account
hub / github.com/Tong89/smartNode / needsCreate

Function needsCreate

frontend/tests/app.unit.test.js:350–352  ·  view source on GitHub ↗

* 判断给定节点 id 是否应该新建(不在索引中)或仅更新位置。

(entityIndex, eid)

Source from the content-addressed store, hash-verified

348 * 判断给定节点 id 是否应该新建(不在索引中)或仅更新位置。
349 */
350function needsCreate(entityIndex, eid) {
351 return !Object.prototype.hasOwnProperty.call(entityIndex, eid);
352}
353
354/**
355 * 构造链路 key,镜像 updateRequestLinks 中的 `${req.id}:sat-gs` 等格式。

Callers 1

app.unit.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected