Addresses are base32 string used to receive XEM. They look like this:
The version without hyphens ("-") is the one we'll use in our queries and lower level processing. The formatted version is only for visual purposes.
Mainnet (104): N
Testnet (-104): T
var address = nem.model.address.toAddress(publicKey, networkId)
var isValid = nem.model.address.isValid(address);
var isFromNetwork = nem.model.address.isFromNetwork(address, networkId);
src/model/address.js for more details