function buildOptions(data) {
    var slg = slug(_.get(data, slugField), slugOptions),
      key = doc + '|'

    // Build scope key
    for (var i = 0; i < scope.length; i++) {
      var k = scope[i]
      key += k + '*' + (_.get(data, k) || '?') + '*'
    }

    return {
      slg: slg,
      key: key
    }
  }
function buildOptions(data) {
    var slg = slug(_.get(data, slugField), slugOptions),
      key = doc + '|'

    
    for (var i = 0; i < scope.length; i++) {
      var k = scope[i]
      key += k + '*' + (_.get(data, k) || '?') + '*'
    }

    return {
      slg: slg,
      key: key
    }
  }
function buildOptions ( data ) { var slg = slug ( _ . get ( data , slugField ) , slugOptions ) , key = doc + '|' // Build scope key for ( var i = 0 ; i < scope . length ; i ++ ) { var k = scope [ i ] key += k + '*' + ( _ . get ( data , k ) || '?' ) + '*' } return { slg : slg , key : key } }
Build options
Build options