Check if multiple elements in an array contain the number 3 and then change those values to a specific word

function beepBoop(input) {
  let arrayBeep = []
  if (Number.isInteger(input) === 0) {
    return true
    } else if (Number.isInteger(input) !== 0) {
    let newNumber = -1
    for (let i = 0; i <= input; i++) {
      newNumber++;
      arrayBeep.push(newNumber)

I have the above array and I want to be able to find all elements in that array that contain the number. Once all the numbers that contain have been identified I want to be able to change those numbers to the word Roar. I have already tried doing a for loop but I can’t see to get the syntax right.

Output = [0,1,2,Roar,4,5,6,7,8,9,10,11,12,Roar,14,15,16,17,18,19,20,21,22,Roar]