BFE.dev 解答例 - JavaScript コーディング問題
5. leading & trailingをサポートするthrottle() を実装する

皆の投稿またはAI解答からも解答例が見つかるかもしれませんよ。