Array Methods

arr.push(item);
arr.pop();
arr.shift();
arr.unshift(item);
arr.splice(index, count);
arr.slice(start, end);

Higher Order Methods

arr.map(item => item * 2);
arr.filter(item => item > 5);
arr.reduce((acc, item) => acc + item, 0);
arr.forEach(item => console.log(item));
arr.find(item => item.id === 1);
arr.some(item => item > 10);
arr.every(item => item > 0);

Common mistakes / Errores comunes

  • People often copy a command or pattern without adapting placeholders, which can break production workflows unexpectedly.
  • It is easy to forget environment-specific differences, so always verify behavior in your shell, runtime, or API gateway before shipping.
  • Many errors come from skipping small validation steps, so test with realistic sample input before relying on the result.
Last updated: February 2026