Current 13" iPad Pro beats original Macbook Airs for dev, plenty people used them.
I'd argue toolchains readily available on iPad Pro with real keyboard and trackpad today is better than any laptop any devs did work on two decades ago.
Stage Manager, in particular, lets you have main + 4 more windows open to swap with a thumb tap, not even counting you can have multiple overlapping panes and drive an external 4K screen with multi-tasking windowing.
Of course if you use Blink (mosh) you can ssh to anything, you can run VSCode or GitHub Codespaces or Cloud9 or any web IDE, you can use any VDI ... even if you don't like the Git file sync and local native Code Editor tools that are compatible-ish with Codea / Textmate / Sublime flavors of editor.