|
Download _snippets/data-function-code/smartjoin.md from Jeice/n8n-docs-v2: direct link, hf CLI and curl.
- Browser
- Download file 183 Bytes
-
https://huggingface.co/datasets/Jeice/n8n-docs-v2/resolve/main/_snippets/data-function-code/smartjoin.md
- Command line
-
hf download hf://datasets/Jeice/n8n-docs-v2/_snippets/data-function-code/smartjoin.md
-
curl -L -o smartjoin.md https://huggingface.co/datasets/Jeice/n8n-docs-v2/resolve/main/_snippets/data-function-code/smartjoin.md
183 Bytes
| ```js | |
| // Input | |
| {{ [{"type":"fruit", "name":"apple"},{"type":"vegetable", "name":"carrot"} ].smartJoin("type","name") }} | |
| // Output | |
| [Object: {"fruit":"apple","vegetable":"carrot"}] | |
| ``` | |