1/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */ 2 3// _bundle_/src/utilities/form.ts 4function serialize(form) { 5 const formData = new FormData(form); 6 const object = {}; 7 formData.forEach((value, key) => { 8 if (Reflect.has(object, key)) { 9 const entry = object[key]; 10 if (Array.isArray(entry)) { 11 entry.push(value); 12 } else { 13 object[key] = [object[key], value]; 14 } 15 } else { 16 object[key] = value; 17 } 18 }); 19 return object; 20} 21 22export { 23 serialize 24};
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.