index.js
// determine if a document should be transformed
determine if a document should be transformed
determine if a document should be transformed
function isUntransformable (doc) {
  if (typeof doc._id === 'string' && (/^_local/).test(doc._id)) {
    return true
  }
  if (doc._deleted) {
    return Object.keys(doc).filter(isntInternalKey).length === 0
  }
  return false
}
function isUntransformable ( doc ) { if ( typeof doc . _id === 'string' && ( / ^_local / ) . test ( doc . _id ) ) { return true } if ( doc . _deleted ) { return Object . keys ( doc ) . filter ( isntInternalKey ) . length === 0 } return false }
determine if a document should be transformed
determine if a document should be transformed
// do not transform local documents // do not transform document tombstones