libraries/group/ws/lib/Protocol.js
function startsWith(src, target) {
  if (target && target.length > 0) {
    return (src.substr(0, target.length) === target);
  } else {
    return false;
  }
}
function startsWith(src, target) {
  if (target && target.length > 0) {
    return (src.substr(0, target.length) === target);
  } else {
    return false;
  }
}
function startsWith ( src , target ) { if ( target && target . length > 0 ) { return ( src . substr ( 0 , target . length ) === target ) ; } else { return false ; } }
Checks whether or not 'src' string starts with 'target' string
@param {String}      src     source string to look into
@param {String}      target  string to find at the beginning
@returns {boolean}   true    if 'src' has 'target' at his beginning
Checks whether or not src string starts with target string