Skip to content

介绍

工具库is模块。

使用方法

javascript
const UtilsIs = require('ee-core/utils/is');

API列表

renderer()

是否为渲染进程

main()

是否为主进程

osx()

是否为MacOS 平台

macOS()

是否为MacOS 平台

windows()

是否为windows平台

linux()

是否为linux平台

x86()

是否为x86架构

x64()

是否为64架构

sandbox()

是否运行在沙盒中(MacOS)

mas()

是否正在运行,从MacOS应用商店中启动。

windowsStore()

是否正在运行,从windows应用商店中启动。

all()

检查传入的多个参数(函数)是否都为true。

none()

检查传入的多个参数(函数)是否都为false。

one()

检查传入的多个参数(函数)有一个为true。