How to use object-hash

Comprehensive object-hash code examples:

How to use object-hash.default:

5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
    });
  }
}
hash(line) {
  const obj = Object.entries(line.columns).filter((entry) => entry[1] !== void 0).reduce((prev, cur) => ({ ...prev, [cur[0]]: `${cur[1]}`.trim() }), {});
  return import_object_hash.default.sha1(obj);
}
segmentId(line) {
  if (line.columns && Object.keys(line.columns).length) {
    return this.hash(line);