Is there a javascript operator that updates a string in-place after a regex operation, such as:
ip = ip.replace(regex, 'xxx');
ip ?= ip.replace(regex, 'xxx');
Similar to the other arithmetic operators, such as:
x = x + 1;
x += 1;
Actually, now that I post it it’s no shorter and doesn’t make too much sense to have that.
>Solution :
No such shorthand assignment operator exists.