Skip to content

prepend

prepend(target, source)

Prepends string or strings from source iterable to the beginning of target string.

ts
prepend("world", "hello "); // "hello world"
prepend("world", ["hello", " "]); // "hello world"
ts
pipe("world", prepend("hello ")); // "hello world"
pipe("world", prepend(["hello", " "])); // "hello world"