(tag: unknown): booleanTrue when tag was piped through identity.
guardsidentity
Source src/Hyperlink.ts:49385 lines
export const const isIdentity: (
tag: unknown
) => boolean
True when tag was piped through
identity
.
isIdentity = (tag: unknowntag: unknown): boolean =>
(typeof tag: unknowntag === "object" || typeof tag: {} | undefinedtag === "function") &&
tag: object | nulltag !== null &&
const identitySym: typeof identitySymMarks a Tag as identity-claiming (
identity
pipe) — layer/serve claim at Lookup first.
identitySym in (tag: objecttag as object) &&
(tag: objecttag as { readonly [const identitySym: typeof identitySymMarks a Tag as identity-claiming (
identity
pipe) — layer/serve claim at Lookup first.
identitySym]?: true })[const identitySym: typeof identitySymMarks a Tag as identity-claiming (
identity
pipe) — layer/serve claim at Lookup first.
identitySym] === true;
Referenced by 2 symbols