lib/annotations.js
function createRange(desc) {
  var fields = ['exact', 'offset', 'selector'];
  utils.check(fields, desc);
  return { exact: desc.exact, offset: desc.offset, selector: desc.selector};
}
function createRange(desc) {
  var fields = ['exact', 'offset', 'selector'];
  utils.check(fields, desc);
  return { exact: desc.exact, offset: desc.offset, selector: desc.selector};
}
function createRange ( desc ) { var fields = [ 'exact' , 'offset' , 'selector' ] ; utils . check ( fields , desc ) ; return { exact : desc . exact , offset : desc . offset , selector : desc . selector } ; }
validates and creates an annotation range
validates and creates an annotation range