findItems(prefix) {
    let items = [];

    for (let i = 0; i < localStorage.length; i++) {
      let key = localStorage.key(i),
        matches = key.match(/^(\w+::\w+::)(\w+)$/);
      if (matches && matches.length === 3 && matches[1] === prefix) {
        items.push(key);
      }
    }

    return items;
  }
/**
   * Gets all keys from storage that match the prefix
   *
   * @param {string} prefix - Prefix to look up
   * @returns {Array}       - Keys in storage that match the given prefix
   */
Gets all keys from storage that match the prefix
@param {string} prefix - Prefix to look up
@returns {Array}       - Keys in storage that match the given prefix
Gets all keys from storage that match the prefix @param { string } prefix - Prefix to look up @returns { Array } - Keys in storage that match the given prefix
findItems(prefix) {
    let items = [];
    for (let i = 0; i < localStorage.length; i++) {
      let key = localStorage.key(i),
        matches = key.match(/^(\w+::\w+::)(\w+)$/);
      if (matches && matches.length === 3 && matches[1] === prefix) {
        items.push(key);
      }
    }
    return items;
  }
findItems ( prefix ) { let items = [ ] ; for ( let i = 0 ; i < localStorage . length ; i ++ ) { let key = localStorage . key ( i ) , matches = key . match ( / ^(\w+::\w+::)(\w+)$ / ) ; if ( matches && matches . length === 3 && matches [ 1 ] === prefix ) { items . push ( key ) ; } } return items ; }
Gets all keys from storage that match the prefix
 @param {string} prefix - Prefix to look up
 @returns {Array}       - Keys in storage that match the given prefix
Gets all keys from storage that match the prefix @param { string } prefix - Prefix to look up @returns { Array } - Keys in storage that match the given prefix