isLinux

isLinux ( ) : boolean

Returns true is the OS is Linux, else false..

Example


if (isLinux()) {
  console("The operating system is Linux.", false, true);
} else {
  console("The operating system is not Linux.", false, true);
}