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

Function add

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

Source from the content-addressed store, hash-verified

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

Callers 2

jQueryFactoryWrapperFunction · 0.70
buildParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected