nl_tokens: Attempts to convert the provided filter to a single { @codelink IDBKeyRange } instance .
pl_tokens: function convertFieldMapToKeyRange ( filter , keyPaths ) { let isOtherFormOfFilter = ! ( filter instanceof Object ) || ( filter instanceof Function ) || ( filter instanceof Array ) || ( filter instanceof Date ) || ( filter instanceof IDBKeyRange ) if ( isOtherFormOfFilter ) { return null } if ( ! ( keyPaths instanceof Array ) ) { keyPaths = [ keyPaths ] } let fieldPaths = getFieldPaths ( filter ) if ( ! fieldPaths ) { return null } let isKeyFilter = ( fieldPaths . length === keyPaths . length ) && fieldPaths . every ( path => keyPaths . indexOf ( path ) > - 1 ) if ( ! isKeyFilter ) { return null } if ( keyPaths . length === 1 ) { return IDBKeyRange . only ( getFieldValue ( <mask> , keyPaths [ 0 ] ) ) } return new IDBKeyRange . only ( keyPaths . map ( ( keyPath ) => { getFieldValue ( filter , keyPath ) } ) ) }