MCPcopy 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 */
173export const setComplement = (a: any[], b: any[]) => {
174 const setA = new Set(a);
175 return b.filter(itemB => !setA.has(itemB));
176};

Callers 2

contextMenuFunction · 0.90
GroupMenuFunction · 0.90

Calls 2

hasMethod · 0.65
filterMethod · 0.45

Tested by

no test coverage detected