Hi! I’m stuck with (probably very easy) challange from my friend I’ve got a data set with users. I have to filter them by joined date after 01/01/2010, but in the set all of dates have a string form. How to do it step by step?
First task was easy for me (filter by gender), here is my solution
// 1. Create separate array of male
const arrMale = data.filter(({ gender }) => gender === 'Male');
console.log(arrMale);
I want to filter date with a similar method but firstly I have to change string into date and have no idea how. You can see how the data set looks like:
Huge thanks for any of your answers!