Skip to content

Tag: arrays

How to filter an array of complex object

I have an array of users and each user has a array of tags and I have an array of selected Tags What is the best way in ES6 to filter the users by selected tags and my selected tags are and I expect to receive a result as Answer Filter the users, and then check that every id is

Javascrip cannot access object properties from map method

So i have been having some problems with javascript’s map method. For some reason i cannot access objects properties from map function. Even though i am using the function on an array. When i print out the object the output is; Output of console.log(marker) this is the output of console.log(hospitalMark…

Multiple arrays inside a array in javascript

when i do console.log(myArray) I obtain this: console.log result I want to take a value inside only one of this arrays, but how? When i do console.log(array[0]) I obtain this result: Answer From what I can see in the original question so far, the output of this function is actually three different console.log…