MCPcopy Index your code
hub / github.com/alibaba/designable / includes

Function includes

packages/shared/src/array.ts:278–281  ·  view source on GitHub ↗
(val: any, searchElement: any, revert?: boolean)

Source from the content-addressed store, hash-verified

276 revert?: boolean
277): boolean
278export function includes(val: any, searchElement: any, revert?: boolean) {
279 if (isStr(val)) return val.includes(searchElement)
280 return some(val, (item) => item === searchElement, revert)
281}
282
283export function includesWith<T extends string>(
284 val: T,

Callers

nothing calls this directly

Calls 2

someFunction · 0.85
includesMethod · 0.80

Tested by

no test coverage detected