Typeberry by Fluffy Labs - v0.4.0
    Preparing search index...

    Function check

    • A function to perform runtime assertions.

      We avoid using node:assert to keep compatibility with a browser environment. Note the checks should not have any side effects, since we might decide to remove all of them in a post-processing step.

      NOTE the function is intended to be used as tagged template string for the performance reasons.

      Parameters

      • strings: TemplateStringsArray
      • condition: boolean
      • ...data: unknown[]

      Returns asserts condition is true