extension
Also written: extensions
Adds methods or getters to a type you didn't write, even int. Inside it, `this` is the value it's called on, as in 475.money.
Also written: extensions
Adds methods or getters to a type you didn't write, even int. Inside it, `this` is the value it's called on, as in 475.money.