hasNumericValue.js 585 B

12345678
  1. export var hasNumericValueDocs = {
  2. name: 'hasNumericValue',
  3. category: 'Utils',
  4. syntax: ['hasNumericValue(x)'],
  5. description: 'Test whether a value is an numeric value. ' + 'In case of a string, true is returned if the string contains a numeric value.',
  6. examples: ['hasNumericValue(2)', 'hasNumericValue("2")', 'isNumeric("2")', 'hasNumericValue(0)', 'hasNumericValue(bignumber(500))', 'hasNumericValue(fraction(0.125))', 'hasNumericValue(2 + 3i)', 'hasNumericValue([2.3, "foo", false])'],
  7. seealso: ['isInteger', 'isZero', 'isNegative', 'isPositive', 'isNaN', 'isNumeric']
  8. };