kab/kab/static/js/monaco-yaml/yamlWorker.js
/**
     * Checks whether the given literal conforms to the [ITextDocument](#ITextDocument) interface.
     */
Checks whether the given literal conforms to the [ITextDocument](#ITextDocument) interface.
Checks whether the given literal conforms to the [ ITextDocument ] ( #ITextDocument ) interface .
function is(value) {
      var candidate = value;
      return Is.defined(candidate)
        && Is.string(candidate.uri)
        && (Is.undefined(candidate.languageId)
            || Is.string(candidate.languageId))
        && Is.number(candidate.lineCount)
        && Is.func(candidate.getText)
        && Is.func(candidate.positionAt)
        && Is.func(candidate.offsetAt) ? true : false;
    }
function is ( value ) { var candidate = value ; return Is . defined ( candidate ) && Is . string ( candidate . uri ) && ( Is . undefined ( candidate . languageId ) || Is . string ( candidate . languageId ) ) && Is . number ( candidate . lineCount ) && Is . func ( candidate . getText ) && Is . func ( candidate . positionAt ) && Is . func ( candidate . offsetAt ) ? true : false ; }
Checks whether the given literal conforms to the [ITextDocument](#ITextDocument) interface.
Checks whether the given literal conforms to the [ ITextDocument ] ( #ITextDocument ) interface .