Skip to content

Unnecessary check of pixels? #1

@fenderil

Description

@fenderil

lib/utils.js, string 75
result[key] = value.endsWith('px') ? parseInt(value, 10) : value;

You would get next transform:
String: '4px 4px' -> Number: 4
Btw why did you add this check?

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