Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
].map(url => {
return {
url,
value: humanizeUrl(url)
}
})
].map(id => {
const { data } = demoLinks.find(item => item.id === id)
const { url } = data
return { id, value: humanizeUrl(url), url, data }
})
const suggestions = screenshots.map(({ id, filename, cdnUrl }) => {
const { url } = demoLinks.find(link => link.id === id).data
return {
cdnUrl,
filename,
id,
url,
value: humanizeUrl(url)
}
})