({
name,
allTools
}: {
name: string;
allTools: string[];
})
| 9 | * @returns {boolean} - Returns `true` if the tool is present, otherwise `false`. |
| 10 | */ |
| 11 | export function isToolPresent({ |
| 12 | name, |
| 13 | allTools |
| 14 | }: { |
| 15 | name: string; |
| 16 | allTools: string[]; |
| 17 | }) { |
| 18 | return allTools.some(tool => { |
| 19 | return slugify(tool) === slugify(name); |
| 20 | }); |
| 21 | } |
no outgoing calls
no test coverage detected