Skip to content

Commit

Permalink
localize let
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Dec 2, 2022
1 parent e32ec63 commit d718202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interval.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export function timeInterval(floori, offseti, count, field) {

interval.range = (start, stop, step) => {
const range = [];
let previous;
start = interval.ceil(start);
step = step == null ? 1 : Math.floor(step);
if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
let previous;
do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
while (previous < start && start < stop);
return range;
Expand Down

0 comments on commit d718202

Please sign in to comment.