/ LJCJSCodeDoc / LJCCommonLib / LJC / HasText


Parameters
text - A string value.

Returns

true if the text has other than white space; otherwise false.

Syntax

JavaScript
static HasText(text)

Checks if the text has a value.

Example

JavaScript
// Checks if the text has a value.
HasText()
{
  let text = "X";
  let result = LJC.HasText(text);

  // result:
  // true

  text = "  ";
  result = LJC.HasText(text);

  // result:
  // false
}

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