src/resources/account/Preferences.js
/**
   * List all preferences, or a subset
   */
List all preferences, or a subset
List all preferences or a subset
async list (...keys) {
    const current = await this.getCurrentPreferences()
    const prefs = keys.length ? pickAll(keys, current) : current
    return constructMap(prefs)
  }
async list ( ... keys ) { const current = await this . getCurrentPreferences ( ) const prefs = keys . length ? pickAll ( keys , current ) : current return constructMap ( prefs ) }
List all preferences, or a subset
List all preferences or a subset
// Filter preferences based on desired keys