Categories

Uniq By

Remove duplicates from an array using lodash _.uniqBy with a property path

Remove duplicate values from an array using a property path. **Highlights:** - Uses lodash `_.uniqBy` - Supports property paths (e.g. `id`, `meta.key`) - Returns unique values as JSON **Example:** - Array: `[{"id": 1}, {"id": 1}, {"id": 2}]` - Path: `id` - Result: `[{"id": 1}, {"id": 2}]`

Enter a JSON array

Property path used to compare values

API Documentation

Request Endpoint

POST /en/api/tools/uniq-by

Request Parameters

Parameter Name Type Required Description
array textarea Yes Enter a JSON array
path text No Property path used to compare values

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-uniq-by": {
      "name": "uniq-by",
      "description": "Remove duplicates from an array using lodash _.uniqBy with a property path",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=uniq-by",
      "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]