MCPcopy
hub / github.com/stanford-futuredata/ColBERT / add

Function add

docs/html/_static/jquery-3.5.1.js:8928–8937  ·  view source on GitHub ↗
( key, valueOrFunction )

Source from the content-addressed store, hash-verified

8926 var prefix,
8927 s = [],
8928 add = function( key, valueOrFunction ) {
8929
8930 // If value is a function, invoke it and use its return value
8931 var value = isFunction( valueOrFunction ) ?
8932 valueOrFunction() :
8933 valueOrFunction;
8934
8935 s[ s.length ] = encodeURIComponent( key ) + "=" +
8936 encodeURIComponent( value == null ? "" : value );
8937 };
8938
8939 if ( a == null ) {
8940 return "";

Callers 2

jquery-3.5.1.jsFile · 0.85
buildParamsFunction · 0.85

Calls 1

isFunctionFunction · 0.85

Tested by

no test coverage detected