UNPKG

semantic-network

Version:

A utility library for manipulating a list of links that form a semantic interface to a network of resources.

12 lines 495 B
import { instanceOfLinkedRepresentation } from 'semantic-link'; import { state } from '../../types/types'; /** * A guard to detect whether the object has {@link State} and is a {@link LinkedRepresentation} * * @param object * @returns whether the object is an instance on the interface */ export function instanceOfTrackedRepresentation(object) { return instanceOfLinkedRepresentation(object) && object[state] !== undefined; } //# sourceMappingURL=instanceOfTrackedRepresentation.js.map