strictIndexOf function

dynamic strictIndexOf(
  1. List array,
  2. dynamic value,
  3. int fromIndex
)

Implementation

strictIndexOf(List<dynamic> array, dynamic value, int fromIndex) {
  var index = fromIndex - 1;
  var length = array.length;

  while (++index < length) {
    if (array[index] == value) {
      return index;
    }
  }
  return -1;
}