UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

19 lines (15 loc) 557 B
export function sameValue(valueA: unknown, valueB: unknown): boolean { return JSON.stringify(valueA) === JSON.stringify(valueB) } export function isNullish(value: unknown): value is null | undefined { return value === null || value === undefined } export function isNull(value: unknown): value is null { return value === null } export function isNotNullish<T>(value: T | null | undefined): value is T { return value !== null && value !== undefined } export function isDefined<T>(input: T | undefined): input is T { return input !== undefined }