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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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