Contents

toNumber

Converts a supported numeric type to a JavaScript number.

Declaration

static number toNumber();

Parameters

  • value:

    A numeric value to convert or validate.

Discussion

If the value passed in isn’t a number, this function throws ValueNotNumericError. If the value is numeric but can’t be represented by a JavaScript number, it throws ValueNotInNumberRangeError.

import { toNumber } from "@apple/cktool.database";