semantic-network
Version:
A utility library for manipulating a list of links that form a semantic interface to a network of resources.
15 lines • 608 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDocumentCollection = void 0;
var instanceOfDocumentRepresentation_1 = require("./instanceOfDocumentRepresentation");
function instanceOfDocumentCollection(obj) {
if ((0, instanceOfDocumentRepresentation_1.instanceOfDocumentRepresentation)(obj)) {
var asObject = obj;
return !!(asObject && Array.isArray(asObject.items));
}
else {
return false;
}
}
exports.instanceOfDocumentCollection = instanceOfDocumentCollection;
//# sourceMappingURL=instanceOfDocumentCollection.js.map