skills/smithery.ai/js-early-exit

js-early-exit

Installation
SKILL.md

Early Return from Functions

Return early when result is determined to skip unnecessary processing. This optimization is especially valuable when the skipped branch is frequently taken or when the deferred operation is expensive.

Incorrect (processes all items even after finding answer):

function validateUsers(users: User[]) {
  let hasError = false
  let errorMessage = ''
Installs
1
First Seen
Mar 22, 2026
js-early-exit from smithery.ai