Skip to content

rangeInclusive? #90

Closed
Closed
@curran

Description

@curran

I frequently find myself using d3.range and desiring an inclusive range. I end up writing code like this:

d3.range(min, max, step).concat(max)

Since this appears rather cryptic, I thought I'd propose this clearer alternative:

d3.rangeInclusive(min, max, step)

This comes up at least once a month in my day to day work, I wonder if this is true for others as well.

Anyone else think this would be a useful addition to d3-array?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions