position of item in array dart

52

var notes = ['do', 're', 'mi', 're'];
notes.indexOf('re');    // 1
notes.indexOf('re', 2); // 3

Comments

Submit
0 Comments