Answers for "how to use indexOf in typesript"

0

how to use indexOf in typesript

var array = [2, 9, 9];
array.indexOf(2);     // 0
array.indexOf(7);     // -1
array.indexOf(9, 2);  // 2
array.indexOf(2, -1); // -1
array.indexOf(2, -3); // 0
Posted by: Guest on July-20-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language