src/index.js
/**
 * Used to check whether the board is full.
 *
 * @param {*} squares - the squares of the board
 */
Used to check whether the board is full.
@param {*} squares - the squares of the board
Used to check whether the board is full . @param { * } squares - the squares of the board
function isFull(squares) {
  for (let i = 0; i < squares.length; i++)
    if (squares[i] === null) return false;
  return true;
}
function isFull ( squares ) { for ( let i = 0 ; i < squares . length ; i ++ ) if ( squares [ i ] === null ) return false ; return true ; }
Used to check whether the board is full.
Used to check whether the board is full .