Home Reference Source

src/utils/time-ranges.js

/**
 *  TimeRanges to string helper
 */

const TimeRanges = {
  toString: function (r) {
    let log = '', len = r.length;
    for (let i = 0; i < len; i++)
      log += '[' + r.start(i).toFixed(3) + ',' + r.end(i).toFixed(3) + ']';

    return log;
  }
};

export default TimeRanges;