Skip to content

Commit 284ed4b

Browse files
authored
🔥
1 parent ad4422b commit 284ed4b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

prelude.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
const decode = decodeURIComponent;
4+
const _compose = (f, g) => (...args) => f(g(...args));
5+
const compose = fns => fns.reduce(_compose);
6+
const replace = (pattern, substr) => str => str.replace(pattern, substr);
7+
const toLower = str => str.toLowerCase();
8+
const append = a => b => b.concat(a);
9+
10+
export {decode, compose, replace, toLower, append};

0 commit comments

Comments
 (0)