Function isValidDeviceList

Returns true if the given string is a valid device specification (including "min <Device>", etc).

Returns false for "", although if you passed "" in OnLayoutOptions it would accept it as specifying all devices.

  • Parameters

    • device: string | string[]

    Returns device is DeviceSpec | ("mobile" | "mobile-wide" | "tablet" | "desktop")[]