/ LJCJSCodeDoc / LJCDBAccessLib / LJCJoinOns / Clone


Returns

The new cloned object.

Syntax

JavaScript
Clone()

Creates a clone of this object.

Example

JavaScript
// Creates a clone of this object.
Clone()
{
  const joinOns = new LJCJoinOns();
  let joinOn = joinOns.Add("fromColumnName1", "toColumnName1");
  joinOn = joinOns.Add("fromColumnName2", "toColumnName2");

  let clone = joinOns.Clone();
  const result = clone.Count;

  // result:
  // 2
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.