File "lib.js"

Full Path: /home/bytebmoc/tideswithin.com/settings/src/utils/lib.js
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;
}