97
rated 0 times
[
104]
[
7]
/ answers: 1 / hits: 18712
/ 11 Years ago, sun, march 10, 2013, 12:00:00
Is there a way to check againts built-in types in google apps script?
I don't know how to access contructors of built-in types. So I can't use instaceof operator.
For example Profile (https://developers.google.com/apps-script/class_analytics_v3_schema_profile )
function getReportDataForProfile(profile) {
if (profile instanceof Profile) // Profile is undefined...
...
}
Also what is a litle confusing: When I get an instance of Profile (in variable profile)
profile.constructor // is undefined
More From » google-apps-script