MCPcopy
hub / github.com/dockersamples/docker-swarm-visualizer / nodeOrContainerExists

Function nodeOrContainerExists

src/data-provider.js:28–35  ·  view source on GitHub ↗
(arr, value)

Source from the content-addressed store, hash-verified

26};
27
28let nodeOrContainerExists = (arr, value) => {
29
30 for (var i = 0, iLen = arr.length; i < iLen; i++) {
31
32 if (arr[i].ID == value) return true;
33 }
34 return false;
35};
36
37let strToHash = (str) => {
38 let hash = 0;

Callers 1

updateNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected