Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const categories = [...new Set(metas.map((meta) => {
// TODO: Create a helper in `hint` to get uppercased category names.
return (meta.docs && meta.docs.category || Category.other);
}))].sort();