memtable.js
//then comparing to make sure values primary ids match or dont exist
then comparing to make sure values primary ids match or dont exist
then comparing to make sure values primary ids match or dont exist
function collides(value){
    var id = getPrimaryID(value) 
    return lodash.some(props.secondary,function(index){
      var val = null
      try{
        val = getBy(index,compositeIndex(index,value))
      }catch(e){
        return false
      }
      return getPrimaryID(val) != id
    })
  }
function collides ( value ) { var id = getPrimaryID ( value ) return lodash . some ( props . secondary , function ( index ) { var val = null try { val = getBy ( index , compositeIndex ( index , value ) ) } catch ( e ) { return false } return getPrimaryID ( val ) != id } ) }
then comparing to make sure values primary ids match or dont exist
then comparing to make sure values primary ids match or dont exist