Answer the question
In order to leave comments, you need to log in
How to filter js array?
I have an array that needs to be filtered.
The usual Array.prototype.filter() does not work, because there is one more subarray in the array.
Array example:
Here is a subarray:
I need to filter by time
, I thought it would be like this:
$humans = await alles.filter(all => all.last_seen.time > (time() - $1day))
time
- is undefined. I tried to put down an asynchronous request everywhere, but all to no avail.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question