isWindows

isWindows ( ) : boolean

Returns true is the OS is Windows, else false.

Example


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