12345678910111213141516171819202122232425262728 |
- a |> b |> c;
- a |> (b |> c);
- (a |> b) || c;
- a |> (b || c);
- let result = "hello"
- |> doubleSay
- |> capitalize
- |> exclaim;
- let newScore = person.score
- |> double
- |> (_ => add(7, _))
- |> (_ => subtract(2, _))
- |> (_ => boundScore(0, 100, _));
- function createPerson (attrs) {
- attrs
- |> bounded('age', 1, 100)
- |> format('name', /^[a-z]$/i)
- |> Person.insertIntoDatabase;
- }
- foo |> (bar ?? baz);
- (foo |> bar) ?? baz;
|