Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Edge case

Also written: edge cases

An input at the limits of what a function should handle, such as an empty array, one item, all items equal, duplicates or a missing target. Testing them catches bugs that ordinary examples miss.

Where the book teaches it

Related terms

Brute force