From 327dad1a3eb65d739498ca83d6ab7b35f2954636 Mon Sep 17 00:00:00 2001 From: Ojas Aklecha <90605717+ojasaklechayt@users.noreply.github.com> Date: Sat, 1 Oct 2022 21:28:33 +0530 Subject: [PATCH] Add content in equality algorithms to JavaScript roadmap (#1977) * Updated isLooselyEqual operator Updated isLooselyEqual operator * Updated strictly equal operator Updated strictly equal operator * Updated Same Value Updated Same Value * Updated Same Valued Zero Updated Same Valued Zero * Update content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/100-is-loosely-equal.md * Update content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/101-is-strictly-equal.md * Update content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/103-same-value.md Co-authored-by: Kamran Ahmed --- .../100-equality-algorithms/100-is-loosely-equal.md | 8 +++++++- .../100-equality-algorithms/101-is-strictly-equal.md | 8 +++++++- .../100-equality-algorithms/102-same-value-zero.md | 7 ++++++- .../100-equality-algorithms/103-same-value.md | 7 ++++++- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/100-is-loosely-equal.md b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/100-is-loosely-equal.md index bfc145ee3..6ec89541d 100644 --- a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/100-is-loosely-equal.md +++ b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/100-is-loosely-equal.md @@ -1 +1,7 @@ -# Is loosely equal \ No newline at end of file +# isLooselyEqual + +[isLooselyEqual](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality) checks whether its two operands are equal, returning a `Boolean` result. It attempts to convert and compare operands that are of different types. + +Free Content + Loosely Equality (==) Operator +Comparsion - javascript.info diff --git a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/101-is-strictly-equal.md b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/101-is-strictly-equal.md index 72e1ee175..0877a0fa8 100644 --- a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/101-is-strictly-equal.md +++ b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/101-is-strictly-equal.md @@ -1 +1,7 @@ -# Is strictly equal \ No newline at end of file +# isStrictlyEqual + +[isStrictlyEqual](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality) checks whether its two operands are equal, returning a `Boolean` result. It always considers operands of different types to be different. + +Free Content + Strictly Equality (===) Operator +Comparsion - javascript.info diff --git a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/102-same-value-zero.md b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/102-same-value-zero.md index 7485cae97..f507ec21a 100644 --- a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/102-same-value-zero.md +++ b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/102-same-value-zero.md @@ -1 +1,6 @@ -# Same value zero \ No newline at end of file +# Same value zero + +[SameValueZero](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value-zero_equality) equality determines whether two values are functionally identical in all contexts with +0 and -0 are also considered equal. + +Free Content + Same-value-zero equality diff --git a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/103-same-value.md b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/103-same-value.md index 9034981e9..1fe358798 100644 --- a/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/103-same-value.md +++ b/content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/100-equality-algorithms/103-same-value.md @@ -1 +1,6 @@ -# Same value \ No newline at end of file +# Same value + +[SameValue](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value_equality_using_object.is) equality determines whether two values are functionally identical in all contexts. + +Free Content + Same-value equality using Object.is()