[][src]Function boa::builtins::string::concat

pub fn concat(
    this: &mut Value,
    args: &[Value],
    ctx: &mut Interpreter
) -> ResultValue

String.prototype.concat( str1[, ...strN] )

The concat() method concatenates the string arguments to the calling string and returns a new string.

Changes to the original string or the returned string don't affect the other.

If the arguments are not of the type string, they are converted to string values before concatenating.

More information: