Ipad pro 12.9 in gives platform as iPhone

We are using platform.is() to find devices as phone or tablet form factor.

We are getting platform.is() as “iPhone” for Ipad pro 12.9.
Same time, if we are getting platform.is() as “iPad” for Ipad pro 9.7, ipad and ipad mini.

Is ther any other API to find the device orm factor?

Thanks,
Muthu.S