DEV Community

Discussion on: Understanding Javascript Array Series II - Alternate ways of Creating an Array.

Collapse
 
akaustav profile image
Ameet Kaustav • Edited

Great article, @Nedy. Helped me understand the origins of some RxJS methods now. See RxJS.of and RxJS.from.

Found an issue though, which you might want to fix:

const arr3 = Array.from([1, 'nedy', undefined, null]);
// Seems to output [1, "nedy", undefined, null]
// instead of ["n", "e", "d", "y"]
Collapse
 
nedyudombat profile image
Nedy Udombat

Thanks a lot @akaustav , this must have been an oversight. I appreciate.