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

Function isPositiveNumber

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

Source from the content-addressed store, hash-verified

29 * @returns {boolean} Returns `true` if the given value is a positive number, else `false`.
30 */
31export function isPositiveNumber(value: unknown): value is number {
32 return isNumber(value) && value > 0 && value < Infinity;
33}
34
35/**
36 * Check if the given value is undefined.

Callers 9

$initSelectionMethod · 0.90
$handleActionMethod · 0.90
$resizeMethod · 0.90
$changeMethod · 0.90
$toCanvasMethod · 0.90
index.spec.tsFile · 0.90
$toCanvasMethod · 0.90
getAdjustedSizesFunction · 0.85

Calls 1

isNumberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…