Class: Citys

Citys()

Citys - Class which contains uniq citys

Constructor

new Citys()

Source:

Members

collector :array

Type:
  • array
Source:

Methods

add(word) → {array}

add - add new city
Parameters:
Name Type Description
word string city name
Source:
Returns:
array of citys
Type
array

get() → {array}

get - get citys
Source:
Returns:
- citys list
Type
array

getCity(index) → {string}

get - Get city by index
Parameters:
Name Type Description
index number city index
Source:
Throws:
if index not found
Type
Error
Returns:
city name
Type
string