function startsWith(source, prefix) {
  for (let i = 0, max = prefix.length; i < max; i++) {
    if (source[i] !== prefix[i]) return false;
  }
  return true;
}
/** Check whether binary array starts with prefix.
 * @param source source array
 * @param prefix prefix array to check in source
 */
Check whether binary array starts with prefix.
@param source source array
@param prefix prefix array to check in source
Check whether binary array starts with prefix . @param source source array @param prefix prefix array to check in source
function startsWith(source, prefix) {
  for (let i = 0, max = prefix.length; i < max; i++) {
    if (source[i] !== prefix[i]) return false;
  }
  return true;
}
function startsWith ( source , prefix ) { for ( let i = 0 , max = prefix . length ; i < max ; i ++ ) { if ( source [ i ] !== prefix [ i ] ) return false ; } return true ; }
Check whether binary array starts with prefix.
Check whether binary array starts with prefix .