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

Function add

src/serialize.js:58–67  ·  view source on GitHub ↗
( key, valueOrFunction )

Source from the content-addressed store, hash-verified

56 var prefix,
57 s = [],
58 add = function( key, valueOrFunction ) {
59
60 // If value is a function, invoke it and use its return value
61 var value = typeof valueOrFunction === "function" ?
62 valueOrFunction() :
63 valueOrFunction;
64
65 s[ s.length ] = encodeURIComponent( key ) + "=" +
66 encodeURIComponent( value == null ? "" : value );
67 };
68
69 if ( a == null ) {
70 return "";

Callers 3

callbacks.jsFile · 0.70
buildParamsFunction · 0.70
serialize.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected