Difference Arrays
Remove values from array that are present in other arrays using lodash _.difference
This tool uses lodash's `_.difference` method to create an array of unique values that are not present in the other provided arrays.
**Features:**
- Strict equality comparison (===)
- Supports multiple exclude arrays
- Case-sensitive/insensitive string comparison
- Validates JSON array input format
**Example:**
- Input array: `[2, 1, 2, 3]`
- Exclude: `[2, 3]`
- Result: `[1]`
API Documentation
Request Endpoint
POST /en/api/tools/difference-arrays
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| array | textarea | Yes | - |
| exclude1 | textarea | Yes | Values to exclude from source array |
| exclude2 | textarea | No | Additional values to exclude (optional) |
| exclude3 | textarea | No | More values to exclude (optional) |
| caseSensitive | checkbox | No | For string comparison, uncheck for case-insensitive matching |
Response Format
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Text:
Text
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-difference-arrays": {
"name": "difference-arrays",
"description": "Remove values from array that are present in other arrays using lodash _.difference",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=difference-arrays",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]