Repl.select() method
Home > streplts > Repl > select
Repl.select() method
Section titled “Repl.select() method”Shows a dropdown list allowing the user to select an option using arrow keys.
Signature:
select(prompt: string, choices: string[]): Promise<string>;Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
prompt |
string | |
|
choices |
string[] |
Returns:
Promise<string>