(options = {}, data = [])
| 1 | class baseModel { |
| 2 | constructor(options = {}, data = []) { // class constructor |
| 3 | this.name = 'Base' |
| 4 | this.url = 'http://azat.co/api' |
| 5 | this.data = data |
| 6 | this.options = options |
| 7 | } |
| 8 | getName() { // class method |
| 9 | console.log(`Class name: ${this.name}`) |
| 10 | } |
no outgoing calls
no test coverage detected