UNPKG

@connectv/core

Version:

agent-based reactive programming library for typescript/javascript

15 lines 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var control_1 = require("../pin/control"); var agent_like_1 = require("./agent-like"); /** * * @param whatever * @returns `true` if `whatever` is `NodeLike` * */ function isNodeLike(whatever) { return whatever !== undefined && whatever.control instanceof control_1.Control && agent_like_1.isAgentLike(whatever); } exports.isNodeLike = isNodeLike; //# sourceMappingURL=node-like.js.map