ES7 exponentiation operator

TypeScript 1.7 supports upcoming ES7/ES2016 exponentiation operators: and =. The operators will be transformed in the output to ES3/ES5 using Math.pow.

Example
  1. var x = 2 ** 3;
  2. var y = 10;
  3. y **= 2;
  4. var z = -(4 ** 3);

Will generate the following JavaScript output:

  1. var x = Math.pow(2, 3);
  2. var y = 10;
  3. y = Math.pow(y, 2);
  4. var z = -(Math.pow(4, 3));