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

Function add

dist-module/jquery.factory.slim.module.js:6253–6262  ·  view source on GitHub ↗
( key, valueOrFunction )

Source from the content-addressed store, hash-verified

6251 var prefix,
6252 s = [],
6253 add = function( key, valueOrFunction ) {
6254
6255 // If value is a function, invoke it and use its return value
6256 var value = typeof valueOrFunction === "function" ?
6257 valueOrFunction() :
6258 valueOrFunction;
6259
6260 s[ s.length ] = encodeURIComponent( key ) + "=" +
6261 encodeURIComponent( value == null ? "" : value );
6262 };
6263
6264 if ( a == null ) {
6265 return "";

Callers 2

buildParamsFunction · 0.70
jQueryFactoryWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected