When trying to find a content type by name using CSOM in C#, I can avoid requesting all contenttypes and filtering client side:
var cts = web.ContentTypes; ctx.Load(cts, c => c.Where(w => w.Name == 'content_type_name'));
When executing the query, the filter gets sent to the server and only the actual hit is returned over the network - nice so far.
Now, I'd like to do the same thing in javascript insted of c#; however, I can't seem to find a way to specify a similar filter in javascript. is this just not possible or am I missing something.