Skip to content
Discussion options

You must be logged in to vote

The datasetColors is an array created in the lines above, so it has flat().
The compler error suggests the right fix:

Try changing the lib compiler option to 'es2019' or later.

The array.flat() was introduced in es2019.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tii
Comment options

Answer selected by Tii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants