• Copy the values of one vector to another without creating a new object.

    Type Parameters

    Parameters

    • source: VectorLike

      Source vector

    • target: T

      Target vector

    Returns T

    Target vector as a copy of source

    Example

    copy([3, 4], [2, 2]); // Returns: [3, 4]
    

Generated using TypeDoc