UNPKG

bingo-functional-js

Version:

A port of the PHP bingo-functional library

17 lines (14 loc) 274 B
const concat = require('./concat') /** * slugify * * slugify :: String -> String * @param {string} text * @returns {string} * @example * * slugify("foo bar") * // => 'foo-bar' */ const slugify = (text) => concat('-', ...text.split(' ')) module.exports = slugify