* Toggles specified property from `true` to `false` or from `false` to `true` * @param {String} property Property to toggle
(property: string)
| 44 | * @param {String} property Property to toggle |
| 45 | */ |
| 46 | toggle(property: string) { |
| 47 | const value = this.get(property); |
| 48 | if (typeof value === 'boolean') { |
| 49 | this.set(property, !value); |
| 50 | } |
| 51 | return this; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Basic getter |
no test coverage detected