How do you get the Object name for a Record when using cs.record(id);

How do you get the Object name for a Record when using cs.record(id); Or any other way?

I tried Libby, but none of the properties/methods given were available.

I was hoping I could use
const caseid = params.context_record_id;
var case_record = cs.record(caseid);

and then…

case_record.object_name  // or something similar

Thanks
JonathanFS (EHDC)

Have a look at record.schema(); that returns object name

Thanks, that’s exactly what I needed.

    var case_record  = cs.record(caseid);
    const schName    = case_record.schema();
    const objectName = schName.details.name;
    cs.log('Object Name: ' + objectName);

Works great.