function filterAndAddRemoteTrackSids(roomV2, remoteTrackStats) {
  var idToSid = new Map(Array.from(roomV2._subscribed.entries()).map(function (_ref3) {
    var _ref4 = _slicedToArray(_ref3, 2),
        sid = _ref4[0],
        id = _ref4[1];

    return [id, sid];
  }));
  return filterAndAddTrackSids(idToSid, remoteTrackStats);
}
/**
 * Filter out {@link RemoteTrackStats} that aren't currently subscribed while
 * also stamping their Track SIDs.
 * @param {RoomV2} roomV2
 * @param {Array<RemoteTrackStats>} remoteTrackStats
 * @returns {Array<RemoteTrackStats>}
 */
Filter out  RemoteTrackStats that aren't currently subscribed while
also stamping their Track SIDs.
@param {RoomV2} roomV2
@param {Array} remoteTrackStats
@returns {Array}
Filter out RemoteTrackStats that aren ' t currently subscribed while also stamping their Track SIDs . @param { RoomV2 } roomV2 @param { Array } remoteTrackStats @returns { Array }
function filterAndAddRemoteTrackSids(roomV2, remoteTrackStats) {
  var idToSid = new Map(Array.from(roomV2._subscribed.entries()).map(function (_ref3) {
    var _ref4 = _slicedToArray(_ref3, 2),
        sid = _ref4[0],
        id = _ref4[1];
    return [id, sid];
  }));
  return filterAndAddTrackSids(idToSid, remoteTrackStats);
}
function filterAndAddRemoteTrackSids ( roomV2 , remoteTrackStats ) { var idToSid = new Map ( Array . from ( roomV2 . _subscribed . entries ( ) ) . map ( function ( _ref3 ) { var _ref4 = _slicedToArray ( _ref3 , 2 ) , sid = _ref4 [ 0 ] , id = _ref4 [ 1 ] ; return [ id , sid ] ; } ) ) ; return filterAndAddTrackSids ( idToSid , remoteTrackStats ) ; }
Filter out {@link RemoteTrackStats} that aren't currently subscribed while
 also stamping their Track SIDs.
Filter out { @link RemoteTrackStats } that aren ' t currently subscribed while also stamping their Track SIDs .