You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It provides no added value to the function as it doesn't affect the return array and is only called on each YAML document (element) once all documents are already loaded onto memory. If a user really needs this functionality, they can use Array.prototype.forEach().
There seem no special scenario supported only by the 1st signature. (If there's an error in any of the input, both cases seem throwing at the same point).
I suggest removing the
iterator
argument fromparseAll()
.It provides no added value to the function as it doesn't affect the return array and is only called on each YAML document (element) once all documents are already loaded onto memory. If a user really needs this functionality, they can use
Array.prototype.forEach()
.https://github.com/denoland/deno_std/blob/a4d4e51cfad1fd79eae5c70bdb8b0d6f92a591d7/yaml/_loader/loader.ts#L1773-L1789
The text was updated successfully, but these errors were encountered: