/ LJCJSCodeDoc / LJCCommonLib / LJC / HasElements


Parameters
arrValue - An array object.

Returns

true if an array and it has elements; othwise false.

Syntax

JavaScript
static HasElements(arrValue)

Checks if an array has elements.

Example

JavaScript
// Checks if an array has elements.
HasElements()
{
  let arrValue = [ "Value" ];
  let result = LJC.HasElements(arrValue);

  // result:
  // true;

  arrValue = [];
  result = LJC.HasElements(arrValue);

  // result:
  // false;
}

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