How can I lookup or locate a record with DataSet components in a TMS WEB Core project?

I used DataSet components in my TMS WEB Core project, but I find the method Lookup() and Locate() can not be used because the types and functions in System.Variant can not be used in a TMS WEB Core project.

My question is how can I lookup or locate a record with DataSet components in a TMS WEB Core project, or there is other way to do that?

A variant does not exist in pas2js but a JSValue is similar.
So, in the dataset demo for example, you can do:

var
  jv: JSValue;
begin
  jv := 'Snapper';
  webclientdataset1.Locate('_Category',jv,[loCaseInsensitive]);
end;

Thank you very much. @brunofierens