prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function pathToTree(path, numStemmed) {
  var root;
  var leaf;
  for (var i = numStemmed, len = path.length; i < len; i++) {
    var node = path[i];
    var currentLeaf = [node.id, node.opts, []];
    if (leaf) {
      leaf[2].push(currentLeaf);
      leaf = currentLeaf;
    } else {
      root = leaf = currentLeaf;
    }
  }
  return root;
}
function pathToTree(path, numStemmed) {
  var root;
  var leaf;
  for (var i = numStemmed, len = path.length; i < len; i++) {
    var node = path[i];
    var currentLeaf = [node.id, node.opts, []];
    if (leaf) {
      leaf[2].push(currentLeaf);
      leaf = currentLeaf;
    } else {
      root = leaf = currentLeaf;
    }
  }
  return root;
}
function pathToTree ( path , numStemmed ) { var root ; var leaf ; for ( var i = numStemmed , len = path . length ; i < len ; i ++ ) { var node = path [ i ] ; var currentLeaf = [ node . id , node . opts , [ ] ] ; if ( leaf ) { leaf [ 2 ] . push ( currentLeaf ) ; leaf = currentLeaf ; } else { root = leaf = currentLeaf ; } } return root ; }
Turn a path as a flat array into a tree with a single branch. If any should be stemmed from the beginning of the array, that's passed in as the second argument
Turn a path as a flat array into a tree with a single branch . If any should be stemmed from the beginning of the array that s passed in as the second argument