Current File : /home/natitnen/hintact.com/wp-content/plugins/really-simple-ssl/settings/src/utils/lib.js
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;
}