1.0.0
ResultProxy wrappers
ArrayPolyfill wrappers
[WINDOW, DATA_LAYER, COOKIE] Same function signature as ArrayPolyfill.map: returns an array where each element is the return value of invoking the callback on the original element
(any)
(element, index) => {}
Array
:
ElementWrapper method wrappers
[DOM] Wrapper around ElementWrapper.getElement Returns raw queried HTML element, null if not found
(any)
(null | HTMLElement)
:
[WINDOW, DOM, DATA_LAYER, COOKIE] Finds the first email match in a given string Will match {any non-whitespace}@{any non-whitespace} Does not check for domain
(string)
string
:
[WINDOW, DOM, DATA_LAYER, COOKIE] Finds the first 10 digit number in a given string after removing all non-numbers and leaving whitespace
(string)
string
string
:
[WINDOW, DOM, DATA_LAYER, COOKIE] Returns payment types of PAYPAL, AMAZON and defaults to CREDIT_CARD if 'paypal' and 'amazon' are not found in the input
(string)
has to be a string, most likely innerHTML/textContent
(any | string)
:
[WINDOW, DOM, DATA_LAYER, COOKIE] Returns the first matching result for a given regex by default
(string)
string containing event field value
(RegExp)
(any)
defaults to 0 (entire matched string)
string
: