/ LJCJSCodeDoc / LJCCommonLib / LJC / IsSimpleType


Parameters
value - A supplied value.

Returns

true if a simple type; otherwise false.

Syntax

JavaScript
static IsSimpleType(keyDownEvent)

Checks if the value is a primitive type.

Example

JavaScript
//Checks if the value is a primitive type.
IsSimpleType()
{
  let number = 1;
  let result = LJC.IsSimpleType(number);

  // result:
  // true;

  number = [];
  result = LJC.IsSimpleType(number);

  // result:
  // false;
}

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