Skip to content

NumberValue

Official

Value wrapping a number.

Import:

import { NumberValue } from 'obsidian';

Signature:

export class NumberValue extends PrimitiveValue<number>

Extends: PrimitiveValue<number>

Constructor

new NumberValue(value: number)

Constructor.

To get the constructor instance, use getNumberValueConstructor from obsidian-typings/implementations.

Properties

PropertyTypeDescription
datanumberThe wrapped primitive value.
(Inherited from PrimitiveValue)
typestring

Methods

MethodReturnsDescription
isTruthy()booleanReturns a boolean indicating whether this obsidian#PrimitiveValue is truthy.
(Inherited from PrimitiveValue)
toString()stringGet the string representation of this obsidian#PrimitiveValue.
(Inherited from PrimitiveValue)

Links to this page: