mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
/**
|
|
* @name isNumber
|
|
* @summary Tests for a JavaScript number.
|
|
* @description
|
|
* Checks to see if the input value is a valid number.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { isNumber } from '@pezkuwi/util';
|
|
*
|
|
* console.log('isNumber', isNumber(1234)); // => true
|
|
* ```
|
|
*/
|
|
export function isNumber(value) {
|
|
return typeof value === 'number';
|
|
}
|