RSSAmplifier

Poolside · Jan 18, 2024

Call function 'n' times in JavaScript

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

Sometimes you need to call a function a given number of times. There is no purpose-built function to do exactly this, but it can easily be done with Array: // Log "hi" five times Array.from({length: 5}, () => console.log('hi')); // Get two random d...

Read on jordanbrennan.hashnode.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.