memtable.js
//gets unique key from object and returns array
gets unique key from object and returns array
gets unique key from object and returns array
function compositeIndex(composite,value){
    if(!lodash.isArray(composite)){
      return lodash.get(value,composite)
    }
    var hasAllProps = lodash.every(composite,function(prop){ 
      return lodash.has(value,prop) 
    })
    assert(hasAllProps,'Object Missing required composite properties: ' + makeKey(composite))
    return makeKey(lodash.reduce(composite,function(result,prop){
      result.push(lodash.get(value,prop))
      return result
    },[]))
  }
function compositeIndex ( composite , value ) { if ( ! lodash . isArray ( composite ) ) { return lodash . get ( value , composite ) } var hasAllProps = lodash . every ( composite , function ( prop ) { return lodash . has ( value , prop ) } ) assert ( hasAllProps , 'Object Missing required composite properties: ' + makeKey ( composite ) ) return makeKey ( lodash . reduce ( composite , function ( result , prop ) { result . push ( lodash . get ( value , prop ) ) return result } , [ ] ) ) }
gets unique key from object and returns array
gets unique key from object and returns array