mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added Vite to frontend builds
This commit is contained in:
parent
daf007c161
commit
2b5d2d7949
118 changed files with 10172 additions and 34001 deletions
|
|
@ -10,23 +10,23 @@
|
|||
/* This function check if value is not set (null or empty).
|
||||
* Do not check for 0 as it may be a valid value. */
|
||||
const isEmptyOrNull = (value) => {
|
||||
return !!(value == null || value == "");
|
||||
}
|
||||
return !!(value == null || value == '');
|
||||
};
|
||||
|
||||
/* This function check if value is not set (null or empty).
|
||||
* Do not check for 0 as it may be a valid value. */
|
||||
const isEmptyString = (value) => {
|
||||
return !!(value == null || value === "");
|
||||
}
|
||||
return !!(value == null || value === '');
|
||||
};
|
||||
|
||||
/* This function check if value is null, or an empty array */
|
||||
const isEmptyArrayOrNull = (value) => {
|
||||
return !!(value == null || value.length === 0);
|
||||
}
|
||||
};
|
||||
|
||||
/* ******************************************************************** */
|
||||
|
||||
const dataUtils = function () {
|
||||
const dataUtils = function() {
|
||||
return {
|
||||
isEmptyString,
|
||||
isEmptyOrNull,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue