MCPcopy Create free account
hub / github.com/frank-lam/fullstack-tutorial / add

Function add

notes/docsify/unpkg/gotop/jquery-2.1.0.js:8383–8387  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

8381 var prefix,
8382 s = [],
8383 add = function( key, value ) {
8384 // If value is a function, invoke it and return its value
8385 value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
8386 s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
8387 };
8388
8389 // Set traditional to true for jQuery <= 1.3.2 behavior.
8390 if ( traditional === undefined ) {

Callers 2

jquery-2.1.0.jsFile · 0.85
buildParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected