JavaScript is a multi-paradigm language, supporting imperative, object-oriented, and functional styles. This presentation is intended to add some tools to your toolbelt. With familiarity of its patterns, functional JS can be very expressive. These patterns often follow from JS best practices:
- Don't extend
Array.prototype
orObject.prototype
with nonstandard functionality; use utility functions - Avoid shared or global state
- Prefer pure functions without side-effects