constructor

Lap.constructor(lap_times)
引数:
  • lap_times (Array) – 経過時間を格納する配列

ソース

constructor(lap_times){
    this.lastTime = new Date();
    this.lapIdx = 0;
    this.lapTimes = lap_times;
}