Skip to content

@rslike/cmp@3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Apr 14:49
6fbb321

Major Changes

What's new

cmp

Compare package now register in global scope Symbol.compare, Symbol.partialEquals and Symbol.equals.

for more examples how to work with theese symbols see at wiki

Definitions for built-in objects.

  • Number and NumberConstructor implements Symbol.compare, Symbol.partialEquals and Symbol.equals
  • String and StringConstructor implements Symbol.compare, Symbol.partialEquals and Symbol.equals
  • Boolean and BooleanConstructor implements Symbol.compare, Symbol.partialEquals and Symbol.equals
  • Date and DateConstructor implements Symbol.compare, Symbol.partialEquals and Symbol.equals

utilities function

@rslike/cmp now export utilities function compare, partialEquals and equals. All this functions call Symbols implementation. (e.g. compare calls Symbol.compare implementation)

  • compare calls Symbol.compare implementation
  • partialEquals calls Symbol.partialEquals implementation
  • equals calls Symbol.equals implementation

Patch Changes

  • Updated dependencies [861b1fb]
    • @rslike/std@3.0.0