StringUtils

Utilities for working with strings.
Source:

Methods

(static) pad(num) → {String}

Pads a number with a leading zero if necessary and returns it as a string representation.
Source:
Parameters:
Name Type Description
num Number The number to pad.
Returns:
- The padded number.
Type
String
StringUtils.pad(1);

(static) removeSpaces(str) → {String}

Removes spaces from the provided string.
Source:
Parameters:
Name Type Description
str String The string to remove spaces from.
Returns:
- The string with no spaces.
Type
String
StringUtils.removeSpaces('Foo Bar'); // 'FooBar'