vegan-ipsum
Version:
Generates passages of vegan-themed placeholder text suitable for use in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
14 lines (11 loc) • 473 B
text/typescript
import { SUPPORTED_PLATFORMS } from "../../constants/platforms";
/**
* Checks if the given platform is supported.
*
* @param {string} platform - The process platform (e.g., "darwin", "win32", "linux").
* @returns {boolean} `true` if the platform is supported, otherwise `false`.
*/
const isSupportedPlatform = (platform: string): boolean => {
return Object.values(SUPPORTED_PLATFORMS).indexOf(platform.toLowerCase()) !== -1;
};
export default isSupportedPlatform;