function createArrayOfNulls(length) {
  const array = new Array(length)
  for (let i = 0; i < length; i++) array[i] = null
  return array
}
Creates an array containing the value `null` repeated `length` times.