parseint vs unary +

Edit on GitHub

compare parse to +

Setup

Tests

  • parseint

    var test1 = '1';
    var test2 = null;
    var test3 = 3;
  • unary +

    var test1 = '1';
    var test2 = null;
    var test3 = 3;