UNPKG

spotify-ts-wrapper

Version:

Spotify TypeScript wrapper.

10 lines (9 loc) 530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchPlaylistAttributes = fetchPlaylistAttributes; function fetchPlaylistAttributes(attributes) { var _a; const HEADER_IMAGE_URL = `header_image_url_desktop`; const filter = attributes === null || attributes === void 0 ? void 0 : attributes.filter((attribute) => (attribute === null || attribute === void 0 ? void 0 : attribute.key) === HEADER_IMAGE_URL); return (_a = filter[0]) === null || _a === void 0 ? void 0 : _a.value; }