Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Creating logical Array of 'false' in svelte [duplicate]

$
0
0

I need to create an Array that I intend to use as an identifier to render different content one at a time on the screen.

I need to create a simple Array = [false, false, false, ...] of some length L that can dynamically change.

I tried:

let tasks = Array(numberOfTasks);

but don't know how to populate it with false.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>