Function stackItemIsTruthy

  • Returns true if the provided stack item is "truthy" in the sense required by several operations (anything but zero and "negative zero").

    The Satoshi implementation calls this method CastToBool.

    To cast a boolean value to a stack item (VM number), use booleanToVmNumber.

    Parameters

    • item: Uint8Array

      the stack item to check for truthiness

    Returns boolean

Generated using TypeDoc