UNPKG

react-native-youtube-iframe

Version:

A simple wrapper around the youtube iframe js API for react native

24 lines (23 loc) 642 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deepComparePlayList = void 0; /** * deep compares two values for the "playlist prop" * * @param {string | string[]} lastPlayList * @param {string | string[]} playList * @returns true if the two are equal */ const deepComparePlayList = (lastPlayList, playList) => { if (lastPlayList === playList) { return true; } if (Array.isArray(lastPlayList) && Array.isArray(playList)) { return lastPlayList.join('') === playList.join(''); } return false; }; exports.deepComparePlayList = deepComparePlayList; //# sourceMappingURL=utils.js.map