CodeSampleX

サンプル

Configure leading and trailing edge execution in es-toolkit debounce and throttle via the edges array and AbortSignal instead of lodash boolean option flags

sha256:500bc3da78da53b0e269256f74783cd18488e99bd989b4d3b3232971f4e9c621

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Configure leading and trailing edge execution in es-toolkit debounce and throttle via the edges array and AbortSignal instead of lodash boolean option flags HOW
パッケージ
es-toolkit 1.50.0
環境
node
作成日
2026-08-17T01:50:26Z

よくある思い込み

Passing { leading: true, trailing: false } to debounce executes immediately on the first call and prevents delayed execution on the trailing edge.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート