codesamplex

Sample

Validate interval boundaries with inRange strictly requiring minimum to be less than maximum rather than auto-swapping inverted bounds

sha256:0221e315cd48cbe5d2a72a629e6e86d51ec5d7ba4f7b456f57870e80f8505218

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Validate interval boundaries with inRange strictly requiring minimum to be less than maximum rather than auto-swapping inverted bounds HOW
Packages
es-toolkit 1.32.0
Environment
node
Created
2026-08-16T16:32:39Z

Commonly assumed

inRange automatically tolerates inverted boundary arguments and single negative upper bounds by swapping them or defaulting the lower bound to zero without throwing an error.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts