MCPcopy
hub / github.com/jquery/jquery / add

Function add

test/data/jquery-3.7.1.js:8768–8777  ·  view source on GitHub ↗
( key, valueOrFunction )

Source from the content-addressed store, hash-verified

8766 var prefix,
8767 s = [],
8768 add = function( key, valueOrFunction ) {
8769
8770 // If value is a function, invoke it and use its return value
8771 var value = isFunction( valueOrFunction ) ?
8772 valueOrFunction() :
8773 valueOrFunction;
8774
8775 s[ s.length ] = encodeURIComponent( key ) + "=" +
8776 encodeURIComponent( value == null ? "" : value );
8777 };
8778
8779 if ( a == null ) {
8780 return "";

Callers 2

jquery-3.7.1.jsFile · 0.70
buildParamsFunction · 0.70

Calls 1

isFunctionFunction · 0.85

Tested by

no test coverage detected