Skip to content

PrismUtil

Unofficial

Prism utility functions.

Import:

import type { PrismUtil } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface PrismUtil

Methods

MethodReturnsDescription
clone(o)TDeep clones an object.
encode(tokens)PrismTokenStreamEncodes tokens by replacing special HTML characters.
objId(obj)numberReturns a unique identifier for the given object.
type(o)stringReturns the type of the given value as a string.

Links to this page: