Fix most glaring bugs and vulnerabilities
This commit is contained in:
@@ -7,4 +7,6 @@ utils.pipe = (...fns) => (initialVal) => fns.reduce((val, fn) => fn(val), initia
|
||||
utils.composeAsync = (...fns) => input => fns.reduceRight((chain, func) => chain.then(func), Promise.resolve(input));
|
||||
utils.pipeAsync = (...fns) => input => fns.reduce((chain, func) => chain.then(func), Promise.resolve(input));
|
||||
|
||||
utils.capitalize = string => string[0].toUpperCase() + string.slice(1)
|
||||
|
||||
module.exports = utils
|
||||
|
||||
Reference in New Issue
Block a user