Validate if an ESModule export has a function called 'onInit'
The object to check.
True if the object has an 'onInit' function.
Validate if an ESModule export has a function called 'onInit'