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
[tester=up.util.isPresent] Function(value): boolean optional

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

Return value

anyorundefined