JS

Iterators

function nombreDelIterador() {
return {
next: function() {
return {
value: "El valor actual del iterador",
done: false, // true | false
}
}
};
}
// Samuel Burbano
const socials = {
  twitter: "@iosamuel",
  facebook: "iosamuel.dev",
  github: "iosamuel",
  web: "iosamuel.dev"
};
JS Iterators function nombreDelIterador ( ) { return { next : function ( ) { return { value : "El valor actual del iterador" , done : false , // true | false } } }; } // Samuel Burbano const socials = { twitter : "@iosamuel" , facebook : "iosamuel.dev" , github : "iosamuel" , web : "iosamuel.dev" };

Iterators

By Samuel Burbano

Iterators

  • 344