UNPKG

lism

Version:

Collection of TypeScript Utilities to help developers streamline their coding workflow.

27 lines (26 loc) 723 B
/** * Determines whether the current device or browser window is in portrait orientation. * * @returns {boolean} - Returns `true` if the device is in portrait orientation, otherwise returns `false`. * * @example * ```typescript * if (isPortrait()) { * // Codes for portrait orientation * } * ``` */ export declare function isPortrait(): boolean; /** * Determines whether the current device or browser window is in landscape orientation. * * @returns {boolean} - Returns `true` if the device is in landscape orientation, otherwise returns `false`. * * @example * ```typescript * if (isLandscape()) { * // Codes for landscape orientation * } * ``` */ export declare function isLandscape(): boolean;