Edit this page

up.util up.util.presence(value, [tester])
JavaScript function

Returns the given argument if the argument is present, otherwise returns undefined.


Parameters

value
required
any
[tester=up.util.isPresent]
optional

The function that will be used to test whether the argument is present.

Function(value): boolean

Return value