the codeartist — programmer and engineer based in Berlin · Sep 6, 2024
Javascript's Array.from is neat!
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Because it simply executes a function arg1.length times, one can do things like: const randomNumbers = Array.from({ length: 75 }, Math.random)
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.