Members
collector :array
Type:
- array
Methods
add(word) → {array}
add - add new city
Parameters:
Name | Type | Description |
---|---|---|
word |
string | city name |
Returns:
array of citys
- Type
- array
get() → {array}
get - get citys
Returns:
- citys list
- Type
- array
getCity(index) → {string}
get - Get city by index
Parameters:
Name | Type | Description |
---|---|---|
index |
number | city index |
Throws:
-
if index not found
- Type
- Error
Returns:
city name
- Type
- string