提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
244 B

  1. import { getType } from './getType.js';
  2. /** Returns whether the payload is literally the value `NaN` (it's `NaN` and also a `number`) */
  3. export function isNaNValue(payload) {
  4. return getType(payload) === 'Number' && Number.isNaN(payload);
  5. }