1234567891011121314151617181920 |
- 'use strict';
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = isDecimal;
- var _assertString = require('./util/assertString');
- var _assertString2 = _interopRequireDefault(_assertString);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var decimal = /^[-+]?([0-9]+|\.[0-9]+|[0-9]+\.[0-9]+)$/;
- function isDecimal(str) {
- (0, _assertString2.default)(str);
- return str !== '' && decimal.test(str);
- }
- module.exports = exports['default'];
|