Skip to main content
Module

x/rambda/glue.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function glue(input, glueChar){ return input .split('\n') .filter(x => x.trim().length > 0) .map(x => x.trim()) .join(glueChar === undefined ? ' ' : glueChar)}