d26db06f74
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled
10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
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);
|
|
}
|