We're a place where coders share, stay up-to-date and grow their careers.
Oh that Array.flat() is so tasty for me!
any possible usecases?
Hm... using arr.flat().includes(something) to find into nested arrays without using recursion. Dunno, just the first usecase jumped into my mind.
Oh that Array.flat() is so tasty for me!
any possible usecases?
Hm... using arr.flat().includes(something) to find into nested arrays without using recursion.
Dunno, just the first usecase jumped into my mind.