StackOverflow Questions for Tag: identity-operator

bcasp
bcasp

Reputation: 57357

Which equals operator (== vs ===) should be used in JavaScript comparisons?

Score: 5645

Views: 2184154

Answers: 47

Read More
speg
speg

Reputation: 2019

How do I achieve the effect of the === operator in Python?

Score: 16

Views: 9898

Answers: 7

Read More
nighthaven
nighthaven

Reputation: 21

is compare id but id should be the same between -5 and 256, how come it's not if x = 3 and y = 5?

Score: -2

Views: 112

Answers: 1

Read More
Shiva
Shiva

Reputation: 18275

Difference between == and === in JavaScript

Score: 1711

Views: 1049581

Answers: 2

Read More
Osama Hamdy
Osama Hamdy

Reputation: 103

Numpy arrays and identity operator is

Score: 0

Views: 163

Answers: 1

Read More
coderex
coderex

Reputation: 27845

Why is === faster than == in PHP?

Score: 176

Views: 36989

Answers: 12

Read More
Mahmudul Alam
Mahmudul Alam

Reputation: 153

Why Python "is" operator gives different result for variable containing same string

Score: 0

Views: 36

Answers: 0

Read More
Simo
Simo

Reputation: 161

the same object for two separated initializations in python

Score: 0

Views: 30

Answers: 1

Read More
Nant
Nant

Reputation: 569

Python Identity operators with variables and datastructures

Score: 1

Views: 97

Answers: 1

Read More
Stefan Konno
Stefan Konno

Reputation:

What does "===" mean?

Score: 57

Views: 78032

Answers: 10

Read More
ivan_pozdeev
ivan_pozdeev

Reputation: 35998

id() vs `is` operator. Is it safe to compare `id`s? Does the same `id` mean the same object?

Score: 10

Views: 1108

Answers: 1

Read More
bryantsai
bryantsai

Reputation: 3455

When would JavaScript == make more sense than ===?

Score: 16

Views: 1474

Answers: 4

Read More
hosseio
hosseio

Reputation: 1222

Why identical operator in php (===) fails with DateTimeImmutable objects?

Score: 7

Views: 1424

Answers: 2

Read More
jslearner
jslearner

Reputation: 22141

Difference between == and === in JS

Score: 19

Views: 21979

Answers: 2

Read More
santosh kore
santosh kore

Reputation: 986

Why does new String('hello') === new String('hello') evaluate to False?

Score: 52

Views: 9332

Answers: 7

Read More
user1040049
user1040049

Reputation:

How do you test the identity of Strings in Swift?

Score: 3

Views: 434

Answers: 1

Read More
Exception
Exception

Reputation: 8379

What is the difference between == and === in JavaScript?

Score: 7

Views: 38774

Answers: 4

Read More
PreviousPage 1Next