function findAnnotation(documentId, annotationId) {
  let index = -1;
  let annotations = getAnnotations(documentId);
  for (let i = 0, l = annotations.length; i < l; i++) {
    if (annotations[i].uuid === annotationId) {
      index = i;
      break;
    }
  }
  return index;
}
/**
 *
 * @param {String} documentId Document id of the annotation
 * @param {String} annotationId The id of the annotation
 *
 * This function finds all the annotation made by one user.
 *
 * @return {int} The index of the annotation in localstorage
 */
@param {String} documentId Document id of the annotation
@param {String} annotationId The id of the annotation

This function finds all the annotation made by one user.

@return {int} The index of the annotation in localstorage
@param { String } documentId Document id of the annotation @param { String } annotationId The id of the annotation This function finds all the annotation made by one user . @return { int } The index of the annotation in localstorage
function findAnnotation(documentId, annotationId) {
  let index = -1;
  let annotations = getAnnotations(documentId);
  for (let i = 0, l = annotations.length; i < l; i++) {
    if (annotations[i].uuid === annotationId) {
      index = i;
      break;
    }
  }
  return index;
}
function findAnnotation ( documentId , annotationId ) { let index = - 1 ; let annotations = getAnnotations ( documentId ) ; for ( let i = 0 , l = annotations . length ; i < l ; i ++ ) { if ( annotations [ i ] . uuid === annotationId ) { index = i ; break ; } } return index ; }
@param {String} documentId Document id of the annotation
 @param {String} annotationId The id of the annotation
@param { String } documentId Document id of the annotation @param { String } annotationId The id of the annotation