Skip to content

Commit 0ffb8d0

Browse files
authored
refactor(PRELUDE) simplify 🔥
1 parent 7dadcac commit 0ffb8d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

prelude.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ const join = separator => xs => xs.join(separator)
2020

2121
const split = separator => str => str.split(separator)
2222

23-
const map = (fn, xs) => xs.map(fn)
24-
25-
const chain = fn => xs => [].concat.apply([], map(fn, xs))
23+
const chain = fn => xs => [].concat.apply([], xs.map(fn))
2624

2725
const of = Array.of.bind(Array)
2826

0 commit comments

Comments
 (0)