/**
* Similar to |toString| but returns |null| for |null| or |undefined| instead
* of "null" or "undefined".
*/exportfunctionaxCoerceString(x): string {
if (typeof x === 'string') {
return x;
} elseif (x == undefined) {
returnnull;
}
return x + '';
}