• Lyza Danger Gardner's avatar
    Refactor `Buckets` object shapes · 0b6f8b10
    Lyza Danger Gardner authored
    Previously, the `buildBuckets` function returned an
    object with two properties: `buckets` and `index`.
    
    Change to return an Array of `Bucket`s and type-define
    what a `Bucket` is—`Bucket` objects now include their
    `position` information, obviating the need for an
    `index` Array that could get out of sync.
    0b6f8b10
buckets-test.js 9.22 KB