• File: lib.js
  • Full Path: /home/docteuh/www/plugins/really-simple-ssl/settings/src/utils/lib.js
  • Date Modified: 06/18/2026 4:25 PM
  • File size: 383 bytes
  • MIME-type: text/plain
  • Charset: utf-8
export const in_array = (needle, haystack) => {
    let length = haystack.length;
    for(let i = 0; i < length; i++) {
        if( haystack[i] == needle ) return true;

    }
    return false;
}

export const errorMsg = (error) => {
    let length = haystack.length;
    for(let i = 0; i < length; i++) {
        if( haystack[i] == needle ) return true;

    }
    return false;
}