Trim

Description

Remove whitespace from both sides of a string.

Inputs

  • string

Outputs

  • string with removed whitespace

Algorithm

/**
 * Trim: Remove whitespace from both sides of a string.
 *
 * @param x1 string
 * @return {Array}
 */
function neuron825(x1)
{
return [x1.toString().trim()]
}

console.log(neuron825(576));

Rodokmen - poznejte své předky | TOPlist U.I., Umělá inteligence