Skip to content

Copying numbersΒ #29

@smhg

Description

@smhg

Calling clipboard.copy(80) doesn't seem to do anything.
I assume it only accepts strings, as clipboard.copy(80.toString()) does work.

While you could argue it is up to the user to convert data into a string, copying numbers doesn't sound that awkward.
Would you be open to accept numbers too? Or call toString on the value you receive?
Or otherwise throw an error in this case?

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