UNPKG

semantic-network

Version:

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

16 lines 704 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTrackedRepresentation = void 0; var semantic_link_1 = require("semantic-link"); var types_1 = require("../../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 */ function instanceOfTrackedRepresentation(object) { return (0, semantic_link_1.instanceOfLinkedRepresentation)(object) && object[types_1.state] !== undefined; } exports.instanceOfTrackedRepresentation = instanceOfTrackedRepresentation; //# sourceMappingURL=instanceOfTrackedRepresentation.js.map