@gradientedge/commercetools-utils
    Preparing search index...

    Function formatAsKey

    • Format a string for use as a key.

      Keys may only contain alphanumeric characters, underscores and hyphens and must have a minimum length of 2 characters and maximum length of 256 characters.

      Parameters

      • input: unknown

        The string that you want to format as a key

      Returns string