Trường · Cardinal Direction

Trường · Cardinal Direction · location.cardinalDirection. Phương thức tạo · Ví dụ

location.cardinalDirection

Cài đặt trình tạo

Tạo dữ liệu để xem kết quả ở đây.

Tham số & Ví dụ

Returns a random cardinal direction (north, east, south, west).

location.cardinalDirection(options?: { abbreviated? })
options
The options to use.
options.abbreviated
If true this will return abbreviated directions (N, E, etc). Otherwise this will return the long name. Defaults to false.

Ví dụ

"South"

Dùng dữ liệu tổng hợp trong môi trường kiểm thử.

Trình tạo liên quan

Khám phá kịch bản