Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8991879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:49:43+00:00 2026-06-15T22:49:43+00:00

How to check in the most simple way if two objects are equal? I

  • 0

How to check in the most simple way if two objects are equal? I noticed that there’s no method ExactEqual()-like, so I wonder if I should do it manually or not.

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:49:44+00:00Added an answer on June 15, 2026 at 10:49 pm

    There is no such method. Take a look at this jqfaq.com link where it was discussed and given the best way to check. This will suitable for both typescript and javascript. Hope, that will help you!.

    To quote the most important part of that answer:

    //“===” means that they are identical.
    //“==” means that they are equal in value.
    //( == )
    //Each JavaScript value is of a specific “type” (Numbers, strings, Booleans, functions, and objects). So if you try to compare a string with a number, the browser will try to convert the string into a number before doing the comparison.
    //So the following will return true.
    55 == “55″ //true
    0 == false //true
    1 == true //true
    //(===)
    //The === operator will not do the conversion, if two values are not the same type it will return false. In other words, this returns true only if the operands are strictly equal in value or if they are identical objects.
    55 === “55″ //false
    0 === false //false
    1 === true //false
    var a = [1, 2, 3];
    var b = [1, 2, 3];
    var c = a;
    var is_ab_eql = (a === b); // false (Here a and b are the same type,and also have the same value)
    var is_ac_eql = (a === c); // true.
    //Value types (numbers):
    //a === b returns true if a and b have the same value and are of the same type.
    //Reference types:
    //a === b returns true if a and b reference the exact same object.
    //Strings:
    //a === b returns true if a and b are both strings and contain the exact same characters.
    var a = “ab” + “c”;
    var b = “abc”;
    a === b //true
    a == b //true
    //in thiss case the above condition will fail
    var a = new String(“abc”);
    var b = “abc”;
    a === b //false
    a == b// true
    //… since a and b are not a same type.
    typeof “abc”; // ‘string’
    typeof new String(“abc”)); // ‘object
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the most efficient way to split a string by a very simple
I am looking for the most efficient/direct way to do this simple C/C++ operation:
How to write a simple method, that checks whether a concrete type is a
Flash implements a dictionary (that is, something like a HashMap) using two approaches. One
Possible Duplicate: Most efficient way to test equality of lambda expressions How to check
Is there a way to check if a subprocess has finished its job? My
Is there a simple way to run a Python script on Windows/Linux/OS X? On
I'm wondering what is the most elegant way to handle exceptions that depend on
I'm writing a Scala application that accesses a database. Most of the time, there
How do I add an extra check to the default Symfony login_check? Most documentation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.