UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

14 lines (13 loc) 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.nullishDocs = void 0; const nullishDocs = exports.nullishDocs = { name: 'nullish', category: 'Logical', syntax: ['x ?? y', 'nullish(x, y)'], description: 'Nullish coalescing operator. Returns the right-hand operand when the left-hand operand is null or undefined, and otherwise returns the left-hand operand.', examples: ['null ?? 42', 'undefined ?? 42', '0 ?? 42', 'false ?? 42', 'null ?? undefined ?? 42'], seealso: ['and', 'or', 'not'] };