imply-this-keyword
No more writing this.
in class methods!
class Desk {
material = "wood"
clean = .8
wash(amount = 1) {
clean += amount * .1
}
store(count = 4) {
clean -= amount * .2
}
}
import { imply_this } from "./imply-this.js"
imply_this(Desk)
What can I scope?
- Just the static properties
imply_static
- Just the normal properties
imply_instance
- Both!
imply_this