traversable
- Ejemplos
Acepta cualquier array u objeto que implemente la interfaz Traversable. | It accepts any array or object implementing the Traversable interface. |
Si el valor devuelto no es un array o una instancia de Traversable, se lanzará un TypeError. | If the returned value is not an array or instance of Traversable, a TypeError will be thrown. |
Las clases que extiendan/implementen podrían ampliar los métodos usando array o Traversable como tipos de parámetro a iterable o reducir los tipos de retorno de iterable a array o Traversable. | Classes extending/implementing may broaden methods using array or Traversable as parameter types to iterable or narrow return types from iterable to array or Traversable. |
