Nog CLI Developer Guide - v0.10.5
    Preparing search index...

    Function renameIfReserved

    • Renames a name if it's a reserved word by appending a suffix. If the name is not reserved, returns it unchanged.

      Parameters

      • name: string

        The name to check and potentially rename

      • suffix: string = '_'

        The suffix to append (default: '_')

      Returns string

      The renamed name if reserved, otherwise the original name