You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
468 B

1 month ago
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.default = equalTxt;
  4. function equalTxt(a, b) {
  5. if (a === undefined || b === undefined)
  6. return false;
  7. let aKeys = Object.keys(a);
  8. let bKeys = Object.keys(b);
  9. if (aKeys.length != bKeys.length)
  10. return false;
  11. for (let key of aKeys) {
  12. if (a[key] != b[key])
  13. return false;
  14. }
  15. return true;
  16. }
  17. //# sourceMappingURL=equal-txt.js.map