API Docs for:
Show:

pString Class

Defined in: generic.js:2567

The pString object exposes functions to manipulate strings.

Item Index

Methods

Methods

sv

(
  • a
  • b
)

Defined in generic.js:2605

Selects a valid string among two.

Parameters:

  • a String

    The first string.

  • b String

    The second string.

Returns:

a if a is not null, undefined or an empty string once trimmed, otherwise b if b is not null, undefined or en empty string once trimmed, otherwise null.