Soporte de tipos mecanografiados de diferentes tipos
function getLength(obj: string | string[]) {
return obj.length;
}
Puzzled Puffin
function getLength(obj: string | string[]) {
return obj.length;
}