([value1: any, value2: any]): booleanThe _ne operator tests if two values are not equal. It takes an array of two values to test.
The
_newon't do a deep comparison.
Arguments
array
An array of two values to compare.
Examples
Two non-equal strings:
_ne:
- "Hello"
- "Hello you"Returns: true
Two equal strings:
_ne:
- "Hello"
- "Hello"Returns: false
Two numbers:
_ne:
- _sum:
- 3
- 4
- 8Returns: true
Arrays are not compared deeply:
_ne:
- [1,2,3]
- [1,2,3]Returns: true
Values from "getter" operators are copies and not equal:
_ne:
- _state: my_object
- _state: my_objectReturns: true
