@ac-essentials/misc-util
    Preparing search index...

    Function isNodeErrorWithCode

    • Test if value is Node Error-like and has the specified code

      Parameters

      • value: unknown

        The value to test

      • code: string

        The error code to match

      Returns boolean

      True if the value is Node Error-like and has the specified code