Examples of all primitive values in JavaScript. Defined for writing unit test.
npm install @leismore/lmos-nodejs-primitives
import {
NULL , UNDEFINED ,
TRUE , FALSE ,
INTEGER , INTEGER_NEGATIVE ,
FLOAT , FLOAT_NEGATIVE ,
ZERO , ZERO_NEGATIVE ,
BIGINT , BIGINT_NEGATIVE ,
BIGINT_ZERO , BIGINT_ZERO_NEGATIVE ,
STRING , STRING_EMPTY , STRING_MULTILINE,
SYMBOL ,
ALL
} from '@leismore/lmos-nodejs-primitives';ALL is an array which contains all primitive values.
© Leismore 2025
- Kyle Chine / Kai Qin / 秦凯 since 03 Aug 2025
- mdn web docs - JavaScript data types and data structures - Primitive values https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Data_structures#primitive_values
Product of Leismore OpenSource Project
Supported by Leismore (Australian Business Number: 25 935 862 619)