MCPcopy Index your code
hub / github.com/jquery/jquery / add

Function add

dist-module/jquery.module.js:7843–7852  ·  view source on GitHub ↗
( key, valueOrFunction )

Source from the content-addressed store, hash-verified

7841 var prefix,
7842 s = [],
7843 add = function( key, valueOrFunction ) {
7844
7845 // If value is a function, invoke it and use its return value
7846 var value = typeof valueOrFunction === "function" ?
7847 valueOrFunction() :
7848 valueOrFunction;
7849
7850 s[ s.length ] = encodeURIComponent( key ) + "=" +
7851 encodeURIComponent( value == null ? "" : value );
7852 };
7853
7854 if ( a == null ) {
7855 return "";

Callers 2

jQueryFactoryFunction · 0.70
buildParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected