javascript - Array.from returns empty array -


i trying filter children of div element.

i direct access parent div via angular viewchild , if print children

console.log(this.myparentdiv.nativeelement.children); 

i following output in chrome:

enter image description here

i need convert array able filter divs. if convert

console.log(array.from(this.myparentdiv.nativeelement.children)); 

it returns empty array.

any idea why returns empty?


Comments

Popular posts from this blog

java - How to handle special characters while unmarshalling xml in JAXB -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -