I own two iPads, and I really don't think it is there yet in terms of writing any serious code.
an iPad Pro 11" which I absolutely love, but is abysmal and no where near any good for coding on.
And currently eyeing that MacBook Air with a massive 2TB, 16GB, and i7 option for still less than the lowest end 16" MacBook Pro and just barely more than the stock 13" high end MacBook Pro.