Edit this page

up.util up.util.isGiven(object)
JavaScript function

Returns whether the given argument is neither undefined nor null.

For the opposite of up.util.isGiven() see up.util.isMissing().

Important

Unpoly's concept of "given" does not correspond to JavaScript's concept of truthy. Empty strings or the number zero are not truthy, but are considered to be "given".

Parameters

object

Return value

boolean