So I have a data structure like this:
formSubmissions: [
{
ids: [1,2,3,4,5],
genders: ["male", "female"],
times: ["1day","3days"]
},
...
]
Basically, every time a form is submitted, I want to check if the object created from the three fields in the form, is equal to anything in the formSubmissions array. If not, I want to append it to the array.
What is the fastest way to accomplish this? I have tried some other stack overflow solutions to no avail.
Thanks!