Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/apitable/apitable
/ setComplement
Function
setComplement
packages/core/src/utils/array.ts:173–176 ·
view source on GitHub ↗
(a: any[], b: any[])
Source
from the content-addressed store, hash-verified
171
* @param b array
172
*/
173
export
const
setComplement = (a: any[], b: any[]) => {
174
const
setA =
new
Set(a);
175
return
b.filter(itemB => !setA.has(itemB));
176
};
Callers
2
contextMenu
Function · 0.90
GroupMenu
Function · 0.90
Calls
2
has
Method · 0.65
filter
Method · 0.45
Tested by
no test coverage detected