F
A function that always returns false.
R.F.run()
// false
A function that always returns false.
R.F.run()
// false
A function that always returns true.
R.T.run()
// true
Remove any null value from the elements.
R.compact.run(R.with(1, null, 2))
// (1, 2)
Print the debug log.
R.debug.run(1)
// 1
Default to a value.
R.defaultTo.run(5, null)
// 5
Get the clone.
R.doClone.run(new Account())
// Account:{}
Check if it is null.
R.isNil.run(null)
// true
Check if it is not null.
R.isNotNil.run(null)
// false
Same as isNotNil
.
Same as isNil
.
Check if it is number.
R.isNumber.run(1)
// true
No op function.
R.noop.run()
// null
Do System assert
R.assert.run(1 == 1, 'should equal');
Do System assertEquals
R.assertEquals.run(1, 1, 'should equal');
Do System assertNotEquals
R.assertNotEquals.run(1, 2, 'should not equal');
Contribute on Github! Edit this section.