$c_obj_csv replacement

Hi All,

I’ve recently re-used a custom module from older version of ERPNext. In one of the JS file it called the following function:
$c_obj_csv(doc, method, arg)
It doesn’t seems to work anymore. Is there any newer replacement for this particular function?

Thanks