examples/secret-combination/app.js
// remove all elements matching a predicate
remove all elements matching a predicate
remove all elements matching a predicate
function removeAll$1 (f, a) {
    var l = a.length;
    var b = new Array(l);
    var j = 0;
    for (var x = (void 0), i = 0; i < l; ++i) {
      x = a[i];
      if (!f(x)) {
        b[j] = x;
        ++j;
      }
    }
    b.length = j;
    return b
  }
function removeAll$1 ( f , a ) { var l = a . length ; var b = new Array ( l ) ; var j = 0 ; for ( var x = ( void 0 ) , i = 0 ; i < l ; ++ i ) { x = a [ i ] ; if ( ! f ( x ) ) { b [ j ] = x ; ++ j ; } } b . length = j ; return b }
remove all elements matching a predicate
remove all elements matching a predicate