function isPrefixOf(a, b) {
  if (a === b) {
    return true;
  }
  if (a == null || b == null) {
    return false;
  }
  if (a.length > b.length) {
    return false;
  }
  for (let i = 0; i < a.length; i++) {
    if (a[i] != b[i]) {
      return false;
    }
  }
  return true;
}
/**
 * Returns whether a is a prefix of b.
 *
 * @param {Any[]} a
 * @param {Any[]} b
 */
Returns whether a is a prefix of b.
Returns whether a is a prefix of b .
function isPrefixOf(a, b) {
  if (a === b) {
    return true;
  }
  if (a == null || b == null) {
    return false;
  }
  if (a.length > b.length) {
    return false;
  }
  for (let i = 0; i < a.length; i++) {
    if (a[i] != b[i]) {
      return false;
    }
  }
  return true;
}
function isPrefixOf ( a , b ) { if ( a === b ) { return true ; } if ( a == null || b == null ) { return false ; } if ( a . length > b . length ) { return false ; } for ( let i = 0 ; i < a . length ; i ++ ) { if ( a [ i ] != b [ i ] ) { return false ; } } return true ; }
Returns whether a is a prefix of b.
Returns whether a is a prefix of b .