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

    let added = [];

    tags.forEach(tag => {
      if (typeof tag === 'string') {
        if (!_tags[tag]) {
          _tags[tag] = 0;
          added.push(tag);
        }

        _tags[tag]++;
      }
    });

    Storage.setItem(_storageKey, _tags);
    if (added.length) {
      this.dispatchEvent('tagschanged', { added: added, removed: [] });
    }
  }
/**
   * Increments 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 increment
   * @returns {void}
   */
Increments 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 increment
@returns {void}
Increments 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 increment @returns { void }
static incrementTags(tags) {
    if (!Array.isArray(tags)) {
      tags = [tags.toString()];
    }
    let added = [];
    tags.forEach(tag => {
      if (typeof tag === 'string') {
        if (!_tags[tag]) {
          _tags[tag] = 0;
          added.push(tag);
        }
        _tags[tag]++;
      }
    });
    Storage.setItem(_storageKey, _tags);
    if (added.length) {
      this.dispatchEvent('tagschanged', { added: added, removed: [] });
    }
  }
static incrementTags ( tags ) { if ( ! Array . isArray ( tags ) ) { tags = [ tags . toString ( ) ] ; } let added = [ ] ; tags . forEach ( tag => { if ( typeof tag === 'string' ) { if ( ! _tags [ tag ] ) { _tags [ tag ] = 0 ; added . push ( tag ) ; } _tags [ tag ] ++ ; } } ) ; Storage . setItem ( _storageKey , _tags ) ; if ( added . length ) { this . dispatchEvent ( 'tagschanged' , { added : added , removed : [ ] } ) ; } }
Increments one or more tag names in the hash and updates the saved hash
 Also fires the `tagschanged` event
Increments 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