0

How to check item string in list?

I don't know how get item from list with an keyvalue JavaScript. Help me guys!

16th Jun 2018, 5:54 PM
Felipe Prestes
Felipe Prestes - avatar
4 Antworten
0
16th Jun 2018, 6:11 PM
Felipe Prestes
Felipe Prestes - avatar
0
var list = new List(["item One", "item two"]) ; For example, how i can get list in position using an var with value "item two"? Exist an keymap in JavaScript?
16th Jun 2018, 6:15 PM
Felipe Prestes
Felipe Prestes - avatar
0
I myself create before using a variable that comes as text to know if it contains in the list. Is there a function that I can know from the string if it exists in this list?
16th Jun 2018, 6:39 PM
Felipe Prestes
Felipe Prestes - avatar
0
Yeah.
16th Jun 2018, 6:54 PM
Felipe Prestes
Felipe Prestes - avatar