You can only perform equals comparisons on NaN

Steven Giraldo

I'm working with angular 6 and firestore. I have a query:

    let cadena=Number(this._tempFirebaseRepo.getCadenaFecha(1));

    //aca esta la query de Firestore
    this.dispositivoRef = this.afs.collection('Dispositivo', ref =>
         ref.where('fecha', '>', cadena)
    )
    debugger;
    this.ultimoDia = this.dispositivoRef.valueChanges(); 

On the browser console appear this error:

You can only perform equals comparisons on NaN

Bronzdragon

The Number() method can return NaN in certain cases. For example, Number('foo') is not a number, and returns NaN.

You cannot check if a number is 'bigger' or 'smaller' than something that isn't a number, the question itself doesn't make sense.

In this case, check the value of cadena. That's where your issue lies.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Cloud Firestore Query - You can only perform equality comparisons on null

From Dev

Drop duplicate rows, but only if column equals NaN

From Dev

Can you simplify chained comparisons with not equal or equal in Python?

From Dev

Can you perform multiple nested populates in mongoose?

From Dev

How can you insert a NaN into a xmm register?

From Dev

How can perform an Elasticsearch Multisearch, with only suggesters?

From Dev

Do i use IEquatable Equals() on struct comparisons?

From Dev

What is the difference between double? and int? for .Equals comparisons?

From Dev

I'm trying to perform two string comparisons with an "if" and an "OR"

From Dev

How can you check which value in a dictionary equals a userInput?

From Dev

Primitive double equals to NaN

From Dev

Preserve NaN values in pandas boolean comparisons

From Java

Can you check if a column exists and perform different actions with oracle?

From Dev

Can you perform system calls from OSX Terminal?

From Dev

Fastlane, can you perform loops or iterations within your fastfile?

From Java

How can you safely perform blocking operations in a Netty channel handler?

From Dev

How can you perform this improper integral as Mathematica does?

From Dev

Can you perform a vagrant provision from inside the VM?

From Dev

How can you perform a Insert overwrite using Spark?

From Dev

Can you perform an action for a specific amount of time in pygame

From Dev

How can you perform other functions simultaneously with PlaySound?

From Dev

Can you perform an inclusion validation based on an enum attribute value?

From Dev

Can you perform equality matching on message template variables in data dog?

From Dev

kubernetes can you install an entire OS in a pod? And perform selenium tests

From Java

Can I generate hashcode() and equals() with only one unique field?

From Dev

Why CoroutineExceptionHandler can only perform launch when the coroutineContext is MainScope()?

From Dev

vim: Can I make *only* y perform a copy?

From Dev

Can python be set to perform a function only if a specific user in logged in?

From Dev

Can you move items on the desktop with the keyboard only?

Related Related

  1. 1

    Cloud Firestore Query - You can only perform equality comparisons on null

  2. 2

    Drop duplicate rows, but only if column equals NaN

  3. 3

    Can you simplify chained comparisons with not equal or equal in Python?

  4. 4

    Can you perform multiple nested populates in mongoose?

  5. 5

    How can you insert a NaN into a xmm register?

  6. 6

    How can perform an Elasticsearch Multisearch, with only suggesters?

  7. 7

    Do i use IEquatable Equals() on struct comparisons?

  8. 8

    What is the difference between double? and int? for .Equals comparisons?

  9. 9

    I'm trying to perform two string comparisons with an "if" and an "OR"

  10. 10

    How can you check which value in a dictionary equals a userInput?

  11. 11

    Primitive double equals to NaN

  12. 12

    Preserve NaN values in pandas boolean comparisons

  13. 13

    Can you check if a column exists and perform different actions with oracle?

  14. 14

    Can you perform system calls from OSX Terminal?

  15. 15

    Fastlane, can you perform loops or iterations within your fastfile?

  16. 16

    How can you safely perform blocking operations in a Netty channel handler?

  17. 17

    How can you perform this improper integral as Mathematica does?

  18. 18

    Can you perform a vagrant provision from inside the VM?

  19. 19

    How can you perform a Insert overwrite using Spark?

  20. 20

    Can you perform an action for a specific amount of time in pygame

  21. 21

    How can you perform other functions simultaneously with PlaySound?

  22. 22

    Can you perform an inclusion validation based on an enum attribute value?

  23. 23

    Can you perform equality matching on message template variables in data dog?

  24. 24

    kubernetes can you install an entire OS in a pod? And perform selenium tests

  25. 25

    Can I generate hashcode() and equals() with only one unique field?

  26. 26

    Why CoroutineExceptionHandler can only perform launch when the coroutineContext is MainScope()?

  27. 27

    vim: Can I make *only* y perform a copy?

  28. 28

    Can python be set to perform a function only if a specific user in logged in?

  29. 29

    Can you move items on the desktop with the keyboard only?

HotTag

Archive