Detect is an empty form values.
yarn add @jswork/next-is-empty-fields
import '@jswork/next-is-empty-fields';
const values = {
name: '',
email: '',
phone: '',
};
nx.isEmptyFields(values); // true
Code released under the MIT license.
Detect is an empty form values.
yarn add @jswork/next-is-empty-fields
import '@jswork/next-is-empty-fields';
const values = {
name: '',
email: '',
phone: '',
};
nx.isEmptyFields(values); // true
Code released under the MIT license.
npm i @jswork/next-is-empty-fields
11
1.0.3
MIT
6.68 kB
6