Determine if an Array contains something other than 2 Take an array which consists of numbers or arrays, output if it only contains 2s.
Output should be a truthy or falsey value (Sorry if this destroys answers)
Truthy Test Cases
[2]
[2,2]
[[2],[2,2],2]
[]
[[],[]]

Falsey Test Cases
[1]
[22]
[2,2,2,1]
[[1,2],2]

Standard Loopholes Are forbidden.
Default IO rules apply.
Code-golf, Fewest bytes wins!
Python 2, 43 40 bytes

f=lambda l:l&gt;=[]and all(map(f,l))or l==2


Try it online!



At time of posting this answer, it was still allowed per this meta consensus to output via throwing an error / not throwing an error. Therefore this answer at 26 bytes was valid:

f=lambda l:l==2or map(f,l)


Try it online!