lorem-ipsum
Version:
Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
12 lines (9 loc) • 364 B
text/typescript
import { SUPPORTED_PLATFORMS } from "../../constants/platforms";
/**
* @param platform The process platform.
* @returns True if the process platform is supported.
*/
const isSupportedPlatform = (platform: string): boolean => {
return Object.values(SUPPORTED_PLATFORMS).indexOf(platform.toLowerCase()) !== -1;
};
export default isSupportedPlatform;