0.0.17 • Published 3 years ago

@lgd-utils/validate v0.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@lgd-utils/validate

Bundle size MIT NPM downloads NPM version lodash npm styled with prettier

A front-end verification tool

Usage

import validate from '@lgd-utils/validate';
import lodashTrim from 'lodash/trim';

validate.validToStringType(1, 'Number'); // true
validate.validToStringType(undefined, 'Null'); // false
validate.validToStringType(void 0, 'Undefined'); // true
validate.validToStringType(function () {}, 'Object'); // false

validate.validEmptyString(1); // false
validate.validEmptyString('  '); // false
validate.validEmptyString(''); // true
validate.validEmptyString('  ', lodashTrim); // true

Contribute

Documentation

Related

0.0.17

3 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago