MCPcopy Create free account
hub / github.com/microsoft/SandDance / validSnapshots

Function validSnapshots

docs/app/js/sanddance-app.js:52086–52094  ·  view source on GitHub ↗
(snapshots)

Source from the content-addressed store, hash-verified

52084 return snapshot.insight && snapshot.title;
52085}
52086function validSnapshots(snapshots) {
52087 if (Array.isArray(snapshots)) {
52088 for(let i = 0; i < snapshots.length; i++){
52089 if (!isSnapshot(snapshots[i])) return false;
52090 }
52091 return true;
52092 }
52093 return false;
52094}
52095class SnapshotImportLocal extends _react.Component {
52096 constructor(props){
52097 super(props);

Callers 2

readFileMethod · 0.70
loadUrlMethod · 0.70

Calls 1

isSnapshotFunction · 0.70

Tested by

no test coverage detected