static decrementTags(tags) {
    // in case it is a single tag sent as a string instead of an array
    if (!Array.isArray(tags)) {
      tags = [tags.toString()];
    }

    let removed = [];

    tags.forEach(tag => {
      if (typeof tag === 'string') {
        if (_tags[tag]) {
          _tags[tag]--;

          if (_tags[tag] < 1) {
            delete _tags[tag];
            removed.push(tag);
          }
        }
      }
    });

    Storage.setItem(_storageKey, _tags);
    if (removed.length) {
      this.dispatchEvent('tagschanged', { added: [], removed: removed });
    }
  }
/**
   * Decrements one or more tag names in the hash and updates the saved hash
   * Also fires the `tagschanged` event
   *
   * @param {Array<string>|string} tags - List of tag names to decrement
   * @returns {void}
   */
Decrements one or more tag names in the hash and updates the saved hash
Also fires the `tagschanged` event

@param {Array|string} tags - List of tag names to decrement
@returns {void}
Decrements one or more tag names in the hash and updates the saved hash Also fires the ` tagschanged ` event @param { Array|string } tags - List of tag names to decrement @returns { void }
static decrementTags(tags) {
    if (!Array.isArray(tags)) {
      tags = [tags.toString()];
    }
    let removed = [];
    tags.forEach(tag => {
      if (typeof tag === 'string') {
        if (_tags[tag]) {
          _tags[tag]--;
          if (_tags[tag] < 1) {
            delete _tags[tag];
            removed.push(tag);
          }
        }
      }
    });
    Storage.setItem(_storageKey, _tags);
    if (removed.length) {
      this.dispatchEvent('tagschanged', { added: [], removed: removed });
    }
  }
static decrementTags ( tags ) { if ( ! Array . isArray ( tags ) ) { tags = [ tags . toString ( ) ] ; } let removed = [ ] ; tags . forEach ( tag => { if ( typeof tag === 'string' ) { if ( _tags [ tag ] ) { _tags [ tag ] -- ; if ( _tags [ tag ] < 1 ) { delete _tags [ tag ] ; removed . push ( tag ) ; } } } } ) ; Storage . setItem ( _storageKey , _tags ) ; if ( removed . length ) { this . dispatchEvent ( 'tagschanged' , { added : [ ] , removed : removed } ) ; } }
Decrements one or more tag names in the hash and updates the saved hash
 Also fires the `tagschanged` event
Decrements one or more tag names in the hash and updates the saved hash Also fires the ` tagschanged ` event
// in case it is a single tag sent as a string instead of an array