Is there anything that allows for overloading some of the more common operators in javascript? For example, taking an example from python to overload the >>
:
class Perhaps:
def __init__(self, value):
self.value = value
def __rshift__(self, other):
...
Is the anything similar to:
class Perhaps {
constructor(value) {
this.value = value
}
?rshift?(other) {
...
}
}