1function flattenObjectProperty(obj) { 2 if (obj) { 3 return Object.entries(obj).map(([id, value]) => ({ 4 ...value, 5 id 6 })); 7 } else { 8 return []; 9 } 10} 11function unflattenObjectProperty(objects) { 12 const unflattened = {}; 13 for (const { 14 id, 15 ...rest 16 } of objects) { 17 unflattened[id] = rest; 18 } 19 return unflattened; 20} 21export { 22 flattenObjectProperty as f, 23 unflattenObjectProperty as u 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.