question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a function to do strict equality check ?

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
char0ncommented, Apr 28, 2018

Missed it. We have http://ramdajs.com/docs/#identical so we have everything we need for further compositions

0reactions
Undistractioncommented, Apr 26, 2018

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 use R.T.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found