Class MathSnak

class for the MathSnak

most used property of this type P2534 (defining formula)

Hierarchy (view full)

Constructors

Properties

datatype: string = 'math'
hash: undefined | string
property: `P${number}`
snaktype: SnakType
value: undefined | string

A math expression

Accessors

  • get hasValue(): boolean
  • Returns boolean

    true if the snak has a value

  • get internalID(): string
  • create a unique id for the Snak

    Returns string

    the id

Methods

  • this function checks if two snaks are equal

    Parameters

    Returns boolean

    true if the snaks are equal

    Example

    if (snak.equals(other)) {
    // do something
    }

Generated using TypeDoc