MCPcopy
hub / github.com/fengyuanchen/cropperjs / isNumber

Function isNumber

packages/utils/src/functions.ts:22–24  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

20 * @returns {boolean} Returns `true` if the given value is a number, else `false`.
21 */
22export function isNumber(value: unknown): value is number {
23 return typeof value === 'number' && !isNaN(value);
24}
25
26/**
27 * Check if the given value is a positive number.

Callers 14

$zoomMethod · 0.90
$changeMethod · 0.90
index.spec.tsFile · 0.90
$changeMethod · 0.90
$setStylesMethod · 0.90
$moveMethod · 0.90
$moveToMethod · 0.90
$rotateMethod · 0.90
$zoomMethod · 0.90
$translateMethod · 0.90
$transformMethod · 0.90
$setTransformMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…