Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 665 Bytes

defined.md

File metadata and controls

32 lines (22 loc) · 665 Bytes

.defined()

since 1.0.0

Verify if the given variable(s) exists in the structure (url, string or json) used in the UTMManager().

Function signatures

The following table presents all parameters combination that can be used in this function.

PARAMETERS SINCE DESCRIPTION
1.0.0 Verifies if the given variables in is() function is defined

How to use

Taking action based on result

utm.is('utm_source')
  .defined()
  .then(() => {
    console.log('it is defined')
  })

Obtaining the boolean result

let result = utm.is('utm_source').defined().result()
// true or false