@fair lava I have an array like so where sometimes a value is undefined and I want to not render a card in such case... how would write the below function to account for that
const people = [
'Benjamin Amans', 'Adebomi Adekeye',
'Chinweizu Ogban', 'Tolu Olaloye',
'Itohan Iroro', 'Emediong Essien',
'Donald Attah', 'Obafemi Agaba',
'Irene Momoh', 'Ed-David Kolawole',
'Koye Edu', 'Folasade Olusanya',
'John Nsorom', 'Susan Akinade',
'Onyedikachi Agbara', 'Amarachi Eze-Njoku',
'Taiwo Adeshina', 'Blessing Udo',
'Oloruntobi Opawoye', 'Kunle Soyibo',
undefined, 'Kodichinma Anigbogu',
'Joshua Moses', 'Asamah Kadiri, SAN',
'Chidozie Obidigwe', 'Deborah Samson',
'Mosopefoluwa Falana', 'Toyosi Odunmbaku',
'Ifeanyi Okonkwo', 'Uwa Ohiku',
'Yeye Nwidaa', 'Cornelius Alaje',
'Damilare Said', 'Wale Adedokun',
'Ebuka Obidigwe', 'Chinyere Okorocha',
'Lookman Durosinmi-Etti', 'Priscilla Ufete',
'Nnamdi Ahara', 'Henry Obidinma',
'Wole Oluwapelumi'
]
{
people.map(
(i) =>
i?.name && (
<InputCheck
label={i}
id={_slugify(i)}
name='people'
checked={peopleFromParams.includes(
_slugify(i),
)}
/>
),
)
}