MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / trim

Function trim

libs/echarts/echarts.simple.js:819–829  ·  view source on GitHub ↗

* @memberOf module:zrender/core/util * @param {string} str string to be trimed * @return {string} trimed string

(str)

Source from the content-addressed store, hash-verified

817 * @return {string} trimed string
818 */
819function trim(str) {
820 if (str == null) {
821 return null;
822 }
823 else if (typeof str.trim === 'function') {
824 return str.trim();
825 }
826 else {
827 return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
828 }
829}
830
831var primitiveKey = '__ec_primitive__';
832/**

Callers 7

makeFontFunction · 0.70
getFontFunction · 0.70
echarts.simple.jsFile · 0.70
parsePointsFunction · 0.70
parseAttributesFunction · 0.70
getPaintFunction · 0.70
parseTransformAttributeFunction · 0.70

Calls 1

trimMethod · 0.80

Tested by

no test coverage detected