Skip to main content
Module

x/rambda/source/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)}