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.
9 lines
254 B
9 lines
254 B
import { getType } from './getType.js';
|
|
/**
|
|
* Returns whether the payload is a number (but not NaN)
|
|
*
|
|
* This will return `false` for `NaN`!!
|
|
*/
|
|
export function isNumber(payload) {
|
|
return getType(payload) === 'Number' && !Number.isNaN(payload);
|
|
}
|