PageSourceSearch

https://www.sweg.de/assets/js/_utilities/serialize.js

js sweg.de collected 2026-10-02 03:28:03 UTC 447 bytes, 19 lines download raw bytes

1/**
2 * Serialize form data.
3 * @module serialize
4 * @exports serialize
5 * @public
6 * @version 1.0.0
7 * @author [email protected]
8 * @see https://developer.mozilla.org/de/docs/Web/API/FormData/FormData
9 */
10
11 'use strict';
12
13 /**
14  * @function serialize
15  * @param {Object} form - The form element you want to serialize as string.
16  */
17 export function serialize(formElement) {
18   return new URLSearchParams(new FormData(formElement)).toString();
19 }

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.