Hi,
Per the Jquery official document, they have removed the jQuery.trim() function.
However, I saw the Jquery3 in this lib still contains trim() function.
https://github.com/rails/jquery-rails/blob/master/vendor/assets/javascripts/jquery3.js#L10811