Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { withParams } from 'vuelidate/lib/validators/common'
- import isFinite from 'lodash/isFinite'
- import toNumber from 'lodash/toNumber'
- export default withParams({ type: 'number' }, value => {
- return isFinite(toNumber(value))
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement