Appearance
useMax
Reactive Math.max
Demo
Usage
tsx
import { useMax } from '@reause/math'
const array = [1, 2, 3, 4]
const max = useMax(array) // 4tsx
import { useMax } from '@reause/math'
const max = useMax(1, 3, 2) // 3Type Declarations
ts
export function useMax(array: readonly number[]): number
export function useMax(...args: number[]): number