Thanks for the article Frugence! 👍
I would like to use [...] SpreadOperator a shorthand alternate to Array.from()
const lisArray = [... document.querySelectorAll('li')];
I wonder is there any major difference between these 2 ways?
Take a look here friend, Array.from() vs spread syntax
Thanks for the reference friend. 👍
You are welcome friend
Based on that, the answer is essentially "no, they are practically the same" for most use cases.
For some edge cases they do have differences. In those specific edge cases Array.from() is the better one to use.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.