Answers for "is value in list javascript"

0

is value in list javascript

function inListBoolean(list, item){
    var boolean = false
    list.forEach(value => {
        if(value == item){
            boolean = true
        }
    })
    return boolean;
}
Posted by: Guest on February-22-2021

Code answers related to "is value in list javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language