Skip to content
Snippets Groups Projects

Auth

Merged Lucas Gabriel Lima requested to merge auth into development
2 files
+ 33
4
Compare changes
  • Side-by-side
  • Inline
Files
2
/* These classes are defined to allow checking of location type with the
instanceof operator. */
class Location
// Location types
class City {
class City extends Location{
constructor(id) {
this.id = id;
}
}
class State {
class State extends Location{
constructor(id) {
this.id = id;
}
}
class Region {
class Region extends Location{
constructor(id) {
this.id = id;
}
Loading