kab/kab/static/js/monaco-yaml/yamlWorker.js
/**
   * Determines if haystack ends with needle.
   */
Determines if haystack ends with needle.
Determines if haystack ends with needle .
function endsWith(haystack, needle) {
    var diff = haystack.length - needle.length;
    if (diff > 0) {
      return haystack.lastIndexOf(needle) === diff;
    }
    else if (diff === 0) {
      return haystack === needle;
    }
    else {
      return false;
    }
  }
function endsWith ( haystack , needle ) { var diff = haystack . length - needle . length ; if ( diff > 0 ) { return haystack . lastIndexOf ( needle ) === diff ; } else if ( diff === 0 ) { return haystack === needle ; } else { return false ; } }
Determines if haystack ends with needle.
Determines if haystack ends with needle .