Question regarding removing duplicates. In the below workflow there are 3 urls each with a corresponding info field. How can I modify the script in the function node to delete the duplicate based on the url, but return the info as well?
Current Result:
[
{
"data": "https://www.bleepingcomputer.com/news/security/actively-exploited-bug-bypasses-authentication-on-millions-of-routers/"
},
{
"data": "https://www.bleepingcomputer.com/news/security/go-rust-net-library-affected-by-critical-ip-address-validation-vulnerability/"
}
]
Desired Result:
[
{
"data": "https://www.bleepingcomputer.com/news/security/actively-exploited-bug-bypasses-authentication-on-millions-of-routers/",
"info": "abcdefg"
},
{
"data": "https://www.bleepingcomputer.com/news/security/go-rust-net-library-affected-by-critical-ip-address-validation-vulnerability/",
"info": "abcdefg"
}
]