examples/secret-combination/app.js
// find index of x in a, from the left
find index of x in a, from the left
find index of x in a from the left
function findIndex$1 (x, a) {
    for (var i = 0, l = a.length; i < l; ++i) {
      if (x === a[i]) {
        return i
      }
    }
    return -1
  }
function findIndex$1 ( x , a ) { for ( var i = 0 , l = a . length ; i < l ; ++ i ) { if ( x === a [ i ] ) { return i } } return - 1 }
find index of x in a, from the left
find index of x in a from the left