SOURCE

function Fun0() { console.log('Fun') }
function Fun1() { console.log('Fun1') }
const list = []
console.log(list)
list.push(Fun0)
list.push(1)
list.push('str')
list.push(Fun1)
console.log(list)
console.log('index: ', list.indexOf(Fun1))
console 命令行工具 X clear

                    
>
console