repl.txt (672B)
1 2 {{alias}}( a, b ) 3 Tests if two arguments are the same value. 4 5 The function differs from the `===` operator in that the function treats 6 `NaNs` as the same. 7 8 Parameters 9 ---------- 10 a: any 11 First input value. 12 13 b: any 14 Second input value. 15 16 Returns 17 ------- 18 bool: boolean 19 Boolean indicating whether two arguments are the same value. 20 21 Examples 22 -------- 23 > var bool = {{alias}}( true, true ) 24 true 25 > bool = {{alias}}( {}, {} ) 26 false 27 > bool = {{alias}}( -0.0, -0.0 ) 28 true 29 > bool = {{alias}}( -0.0, 0.0 ) 30 true 31 > bool = {{alias}}( NaN, NaN ) 32 true 33 34 See Also 35 -------- 36