simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

isNumeric.js (676B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.isNumericDocs = void 0;
      7 var isNumericDocs = {
      8   name: 'isNumeric',
      9   category: 'Utils',
     10   syntax: ['isNumeric(x)'],
     11   description: 'Test whether a value is a numeric value. ' + 'Returns true when the input is a number, BigNumber, Fraction, or boolean.',
     12   examples: ['isNumeric(2)', 'isNumeric("2")', 'hasNumericValue("2")', 'isNumeric(0)', 'isNumeric(bignumber(500))', 'isNumeric(fraction(0.125))', 'isNumeric(2 + 3i)', 'isNumeric([2.3, "foo", false])'],
     13   seealso: ['isInteger', 'isZero', 'isNegative', 'isPositive', 'isNaN', 'hasNumericValue']
     14 };
     15 exports.isNumericDocs = isNumericDocs;