PageSourceSearch

https://www.astrobetter.com/wiki/public/generated/js/vendor_dist/@popperjs/core/dist/esm/utils/mergeByName.js

js astrobetter.com collected 2026-10-02 03:38:08 UTC 524 bytes, 14 lines download raw bytes

vendor: 524 bytes, lines 1-14
1export default function mergeByName(modifiers) {
2  var merged = modifiers.reduce(function (merged, current) {
3    var existing = merged[current.name];
4    merged[current.name] = existing ? Object.assign({}, existing, current, {
5      options: Object.assign({}, existing.options, current.options),
6      data: Object.assign({}, existing.data, current.data)
7    }) : current;
8    return merged;
9  }, {}); // IE11 does not support Object.values
10
11  return Object.keys(merged).map(function (key) {
12    return merged[key];
13  });
14}

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.