Functiondojo.string.trim

dojo.require("dojo.string");
defined in dojo/string.js

This version of trim() was taken from Steven Levithan's blog. The short yet performant version of this function is dojo.trim(), which is part of Dojo base.

Usage

function (/*String*/ str) (view source)
parametertypedescription
strString