MCPcopy Index your code
hub / github.com/ampproject/amphtml / append

Method append

src/form-data-wrapper.js:65–71  ·  view source on GitHub ↗

* @param {string} name * @param {string|!File} value * @param {string=} opt_filename * @override

(name, value, opt_filename)

Source from the content-addressed store, hash-verified

63 * @override
64 */
65 append(name, value, opt_filename) {
66 // Coercion to string is required to match
67 // the native FormData.append behavior
68 const nameString = String(name);
69 this.fieldValues_[nameString] = this.fieldValues_[nameString] || [];
70 this.fieldValues_[nameString].push(String(value));
71 }
72
73 /** @override */
74 delete(name) {

Callers

nothing calls this directly

Calls 2

StringFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected