Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Variable name suggestion #74

@nsmedira

Description

@nsmedira

let cp = currentPage;
let begin = cp < half ? 0 : cp - half;
let end = cp < half ? perPage : cp + (half - 1);

IMO copying currentPage into cp reduces readability. could we not simply use currentPage where we are using cp?

This issue prompted by this discussion.

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