iridium - v0.9a
    Preparing search index...

    Implements the append functionality from the ECMA spec. It is currently being used to model the spread functionality when creating arrays.

    Given the target array targetObj and an insertionIdx (start index for spread). This call appends the elements of spreadObj at the given index.

    [resultObj,insertionIdx = 2] JSAppend (targetObj, insertionIdx, spreadObj)
    
    let b = ["a", "b"];
    let c = ["foo", "bar"];
    let a = [1,2,...b, 3, ...c];
    • ARG(targetObj): The source object.

    • ARG(insertionIdx): The index where the insertion must be performed.

    • ARG(spreadObj): The value to be spread.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    args: IridiumSEXP[] = []

    Args are the children nodes to the current node.

    flags: [string, IridiumPrimitives][] = []

    Flags store metadata/primitive data in an Iridium node. These nodes cannot store other Iridium S-Expressions.

    tag: string = "IridiumSEXP"

    Tag specifics the S-Expression Type.

    Methods

    • Parameters

      • flag: string

      Returns boolean

    • Parameters

      • flag: string

      Returns number

    • Parameters

      • flag: string

      Returns string

    • Parameters

      • flag: string

      Returns boolean

    • Parameters

      • flag: string

      Returns void

    • This method is used to squish the Iridium Code into an array which can be easily stored on disk.

      Returns any[]

      Nested Array of Iridium S-Expressions.

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      • Optionalspace: number

      Returns string