Although jQuery isn't very relevant these days, I still find its pattern of chaining a sequence of methods on a set chosen by a selector to be a beautiful example of going with a language's features.
This is called a fluent interface. [1] C++ streams are perhaps the most common example of this pattern.
A TC39 Stage 2 proposal adds this into the language itself with the pipeline `|>` operator. [2]
Are you talking about method chaining, something that comes from JavaScript (technically the DOM I suppose), not jQuery?
To that point, there was a conscious choice that the return type of most method invocations (except in specific "read a value" modes) should be a standardized container type.
That was, and still is, rare! And in a time without type checking and bundling, it was vital. Match your parentheses and quotes, and your jquery code might not find what you want, but it would (likely) not throw exceptions.
For those unfamiliar, I recommend looking at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast... and searching for the 201 instances of
in that file. A remarkably fluent API. We could all be so elegant.