GitXplorerGitXplorer
k

pipeline-experiments

public
5 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
17b48f98e69c745d2465c9cc2c9dd8f068111a42

Update package.json

kkutyel committed 6 years ago
Verified
5450e4c5aa2242c3d8f097caedc73736b91df566

Fix security issue with `merge` dep

kkutyel committed 6 years ago
Verified
27bada372677be732322a6bb9e94d5e394c8a3f5

Delete package-lock.json

kkutyel committed 6 years ago
Unverified
69e6642e29817e476e1870c6f47c0c5cbf4f9482

Add unit tests! 🚀

kkutyel committed 7 years ago
Unverified
21da6506dcec369341ec16136c3b0109879fb8ea

Upload code

kkutyel committed 7 years ago
Verified
613d3dfbf518831b9f8b80dfa114f015bac0692e

Initial commit

kkutyel committed 7 years ago

README

The README file for this repository.

pipeline-experiments

Experiments with the new pipeline operator 🤓

const camelCase = str =>
  str
  |> match(/[A-Za-z]+/g)
  |> map(toLower)
  |> over(lensIndex(1), replace(/^./g, toUpper))
  |> join('')

const test = [
  'foo-bar',
  'foo_bar',
  'Foo-Bar',
  '--foo.bar',
  '__foo__bar__',
  'foo bar'
]

test |> map(camelCase) |> all(equals('fooBar')) |> console.log // true!!!