Skip to content

pxToTailwind never returns null #123

@allain

Description

@allain

Hello.

I was diving into the code and noticed that pxToTailwind doesn't seem to ever return null but it is documented as possibly returning it.

When round is true, it will find the nearest key in the map and return its value (which is always a string it seems).

When round is false, it will return a string with the exact pixels specified.

If this is corrected, a good number of truthy checks in other conversion functions could likely be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions