Skip to content

[Replacement]: is-alphanumerical #1001

Description

@outslept

Package to replace

is-alphanumerical

Suggested replacement(s)

const isAlphanumerical = (character) =>
  /^[a-z0-9]$/i.test(
    typeof character === 'string'
      ? character.slice(0, 1)
      : String.fromCharCode(character)
  )

For string-only : /^[a-z0-9]/.test(ch)

Manifest type

native (replaceable by a built-in platform feature)

Rationale

composition of #998 + #1000 , inlinable as well

Availability

No response

Code example (optional)

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