SoFunction
Updated on 2025-04-07

A simple and practical way to use three versions of js despace processing


 = function(){ return (/^\s+|\s+$/g,"")}  
 = function(){ return (/^\s+/g,"")}  
 = function(){ return (/\s+$/g,"")}