MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / strArrayIsEqual

Function strArrayIsEqual

frontend/app/tab/tabbar.tsx:78–95  ·  view source on GitHub ↗
(a: string[], b: string[])

Source from the content-addressed store, hash-verified

76WaveAIButton.displayName = "WaveAIButton";
77
78function strArrayIsEqual(a: string[], b: string[]) {
79 // null check
80 if (a == null && b == null) {
81 return true;
82 }
83 if (a == null || b == null) {
84 return false;
85 }
86 if (a.length !== b.length) {
87 return false;
88 }
89 for (let i = 0; i < a.length; i++) {
90 if (a[i] !== b[i]) {
91 return false;
92 }
93 }
94 return true;
95}
96
97const TabBar = memo(({ workspace, noTabs }: TabBarProps) => {
98 const env = useWaveEnv<TabBarEnv>();

Callers 1

tabbar.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected