/ LJCJSCodeDoc / LJCCollectionLib / LJCCollection / IsMatch


Parameters
dataColumns - The unique data names and values.

Returns

true if it matches; otherwise false.

Syntax

JavaScript
IsMatch(dataColumns)

Checks if the item matches the data values.

Example

JavaScript
// Checks if the item matches the data values.
IsMatch()
{
  const testItems = new TestItems();
  let testItem = testItems.Add("NameOne");
  testItem.Sequence = 1;
  testItem = testItems.Add("NameTwo");
  testItem.Sequence = 2;

  const dataColumns = new LJCDataColumns();
  dataColumns.AddValue("Name", "NameTwo");
  let result = testItems.IsMatch(testItem, dataColumns);
  result = result ? "true" : "false";
  
  // result:
  // true
}

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