# All files / src/utils time-ranges.js

16.67% Statements 1/6
100% Branches 0/0
0% Functions 0/1
20% Lines 1/5

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17

    11x

     /**
     *  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;