(correctAnswer: string, incorrectAnswers: string[])
| 199 | } |
| 200 | |
| 201 | function reorderOptions(correctAnswer: string, incorrectAnswers: string[]) { |
| 202 | const options = [...incorrectAnswers, correctAnswer] |
| 203 | |
| 204 | // Reorder the questions |
| 205 | options.sort(() => Math.random() > 0.5 ? 1 : -1) |
| 206 | return options |
| 207 | } |
| 208 | |
| 209 | function createText(characters: string, size: number) { |
| 210 | const text = figma.createText() |
no outgoing calls
no test coverage detected