validate

The function is a helper function that performs a basic validation of the input string for deserialization.

Signatures

  •   validate( string )

Example

 console.log( validate('< [5, 1 , 2 ] >');
 

Output

 <[5,1,2]>
 

Parameters

string

Input string to be processed.

Return value

A processed string.