UNPKG

@udus/notion-renderer

Version:
8 lines (7 loc) 282 B
import { randomUUID } from "node:crypto"; export const notUndefined = (v) => typeof v !== "undefined"; export const notNull = (v) => v !== null; export const notNullNorUndefined = (v) => notUndefined(v) && notNull(v); export const generateUUID = () => { return randomUUID(); };