fbjs
fbjs copied to clipboard
shallowEqual() should handle NaN values correctly
shallowEqual() should return true when dealing with NaN.
shallowEqual(NaN, NaN); // true
shallowEqual({a: NaN}, {a: NaN}); // true
Fixing this would also fix the confusing error in React, see React Issue 5773.
As mentioned, will be syncing this out from internal at some point, but yes, we will be doing this.