lanka-validations - v2.1.0
    Preparing search index...

    Function removeSeparators

    • Strips all spaces, hyphens, and standard separators.

      Parameters

      • input: unknown

        Any value.

      Returns string

      cleanString(input) with spaces, hyphens, underscores, slashes, and dots removed.

      removeSeparators('077-123 4567'); // '0771234567'