12

Symmetric Increment:
i-=-1

Comments
  • 1
    It's like the long plus operator in JS:

    const b = a -+- 1;

    Works as expected if a is an integer-ish string.
  • 1
    @gronostaj very interesting that that works! Do the “+” and second “-“ get treated as unary operators?
  • 2
    @FelisPhasma I have no idea, but that would be my guess too. I think I first saw it here on devRant some time ago.
  • 1
    Me like the change
Add Comment