Is there a function to do strict equality check ?
See original GitHub issueI asked myself when I wrote https://github.com/char0n/ramda-adjunct/pull/513#issuecomment-384323292 :
Because R.equals
performs deep equality checks, is there a function to do strict equality in RA
(or directly Ramda
) ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Equality (==) - JavaScript - MDN Web Docs
The equality ( == ) operator checks whether its two operands are equal, returning a Boolean result. Unlike the strict equality operator, ...
Read more >Loose vs Strict Equality in JavaScript | by Uday Hiwarale
The Loose Equality or Abstract Equality check is check for the likeness of the two values and it is performed using == (double...
Read more >Which equals operator (== vs ===) should be used in ...
The strict equality operator ( === ) behaves identically to the abstract equality operator ( == ) except no type conversion is done,...
Read more >Understanding Strict, Abstract Equality Operators in JS
Both operators will check the equality of two values and return the boolean value (true or false) based on whether the values are...
Read more >Object.is() vs Strict Equality Operator in JavaScript
The strict equality check operator evaluates to true when both values are of the same type and hold the same value.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Missed it. We have http://ramdajs.com/docs/#identical so we have everything we need for further compositions
I would vote we call it
equalsStrict
as this is much easier to remember. I think when we are talking about function libs with so many different functions I’d always favour verbosity. It always bugs the hell out of me when I useR.T
.