You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think Number.isNaN is unnecessary in this case because the argument is always a number, so the result is same as global.isNaN. And second, IE11 does not support Number.isNaN.
Another change would be date.valueOf(). According to MDN, this is equivalent to date.getTime(). So I would recommend using date.getTime() for consistency.
The text was updated successfully, but these errors were encountered:
We have fixed [#1626](microsoft/BotFramework-WebChat#1626) in Web Chat. It will unblock your code so it no longer need to lock down on a specific version of Web Chat.
In some of our code, we are using
Number.isNaN
. For example, https://github.com/Microsoft/BotFramework-WebChat/blob/master/packages/component/src/Localization/en-US.js#L12.I think
Number.isNaN
is unnecessary in this case because the argument is always a number, so the result is same asglobal.isNaN
. And second, IE11 does not supportNumber.isNaN
.Another change would be
date.valueOf()
. According to MDN, this is equivalent todate.getTime()
. So I would recommend usingdate.getTime()
for consistency.The text was updated successfully, but these errors were encountered: