# All files / src/utils timeRanges.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

    1x

     /**
     *  TimeRanges to string helper
     */

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

    export default TimeRanges;