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(866));

Create your family tree for free