Usage
JavaScript
string.trimAll()
Parameters
This function does not accept any parameters. Is this incorrect?
Examples
JavaScript
let string = " this string has extra spaces everywhere "; return string.trimAll();
Additional Notes
Remember that this is a method and not a function– see the example for how to use it.
Source File
This function was not found in /assets/js/modules/extensions.js. Please report this error.
No Hooks
This function does not have any filters or actions available. Request one?Override
To override or disable this JavaScript function, simply redeclare it with the exact same function name. Remember: Some functionality is conditionally loaded via dynamic imports, so if your function is not overriding properly, try listening for a DOM event (described below).
JavaScript
function trimAll(){ //Write your own code here, leave it blank, or return false. }