Skip to content

MacOs

Desktop Env

Desktop platform for various-devices

isMacOS

platform Desktop

usage

js
import { isMacOS } from 'various-devices'
const result = isMacOS()

Used to determine whether it is a MacOS platform and can be used in both browsers and electrons.

ts
const isMacOS: () => boolean

Get the current desktop device

js
import { getDesktop } from 'various-devices'
const result = getDesktop()

getDesktop return value is one of the following

valueintroduce
macos苹果
windowswindows
linuxLinux

Contributors

xiaoMan
xiaoMan

💻 📖 🎨
yanzibiezou
yanzibiezou

💻
徐轲
徐轲

💻
yinxing233
yinxing233

💻
Add your contributions