react-input-validate
Input validation for null, undefined, Infinity and NaN values
Demo
Installation
- Install React Input Validate as a dependency
# NPM $ npm install react-input-validate
- Import the
react-input-validate
module
// ES6;
Example
import validate from 'react-delimiter'; { <h4></h4> }
Input | Output |
---|---|
validate(123) | 123 |
validate(undefined) | N/A |
validate(null) | N/A |
validate(Infinity) | - |
validate(NaN) | N/A |
Parameters
value=Numbers or Strings