ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function insertAfterValue

    • Insert a value after a specific value. If the value to insert after is not found then the value to insert is added to the end of the array

      Type Parameters

      • T

      Parameters

      • arrayToInsertInto: T[]

        The array to contain the new value

      • valueToInsert: T

        The value we want to insert

      • valueToInsertAfter: T

        The value that dictates the position of the new value

      Returns T[]

      Array of values with the newly inserted value