INNER CODE UNIT · JavaScript

isNonEmptyValue

mdziekon/UniEngine · js/_libCommon.js:65

const isNonEmptyValue = (currentValue, params) => {
    const isZeroAllowed = (params || {}).isZeroAllowed || false;
    const valueComparator = (
        isZeroAllowed ?
            (value) => value >= 0 :
            (value) => value > 0
    );

    return (
        currentValue != "" &&
        valueComparator(currentValue)
    );
};
const isNonEmptyDataSlot = (jqThis, dataKey) => {
    const currentValue = $(jqThis).data(dataKey);

    return (
        currentValue != "" &&

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…