deps/npm/lib/utils/completion/contains-single-match.js
function containsSingleMatch(str, arr) {
  var filtered = arr.filter(function(e) { return e.indexOf(str) === 0 })
  return filtered.length === 1
}
function containsSingleMatch(str, arr) {
  var filtered = arr.filter(function(e) { return e.indexOf(str) === 0 })
  return filtered.length === 1
}
function containsSingleMatch ( str , arr ) { var filtered = arr . filter ( function ( e ) { return e . indexOf ( str ) === 0 } ) return filtered . length === 1 }
True if arr contains only one element starting with str.
True if arr contains only one element starting with str .