Example 1 — Official Sample
Call R.T with nothing, or with anything — the answer is always true.
console.log(R.T()); // true
console.log(R.T(0, 'a', null)); // true
console.log(R.T(false)); // true How It Works
- No arguments.
R.T()→true, the sample from the Ramda docs. - Many arguments.
0,'a', andnullare ignored →true. - Even false.
R.T(false)doesn’t look at its input →true.
