Pure function as String prototype

Write a pure `pipefy` function where a string received is returned, but with the `|` character between each character

by Dmytro Chumak

JavaScript

String.prototype.pipefy = function() {
	return this.split('').join('|');
}