decryptData(data, password) {
    data = JSON.parse(data);
    let decrypted;
    for (let value of data) {
      try {
        decrypted = encryption.decrypt(value, password);
      } catch (e) {
        console.log(e.message);
      }

      if (decrypted) {
        return decrypted;
      }
    }

    return false;
  }
/**
   * Iterates through all values of `data` trying to
   * decrypt each one, and returns first one successfully decrypted
   *
   * @param data String (serialized array)
   * @param password
   */
Iterates through all values of `data` trying to
decrypt each one, and returns first one successfully decrypted

@param data String (serialized array)
@param password
Iterates through all values of ` data ` trying to decrypt each one and returns first one successfully decrypted @param data String ( serialized array ) @param password
decryptData(data, password) {
    data = JSON.parse(data);
    let decrypted;
    for (let value of data) {
      try {
        decrypted = encryption.decrypt(value, password);
      } catch (e) {
        console.log(e.message);
      }
      if (decrypted) {
        return decrypted;
      }
    }
    return false;
  }
decryptData ( data , password ) { data = JSON . parse ( data ) ; let decrypted ; for ( let value of data ) { try { decrypted = encryption . decrypt ( value , password ) ; } catch ( e ) { console . log ( e . message ) ; } if ( decrypted ) { return decrypted ; } } return false ; }
Iterates through all values of `data` trying to
 decrypt each one, and returns first one successfully decrypted
Iterates through all values of ` data ` trying to decrypt each one and returns first one successfully decrypted