CodeSampleX

サンプル

Show that `chunk` requires an explicit positive integer `size`, even on a typical call.

sha256:bc911179a09fdad8736b2aebac4f94172969399a9758e4aa9d4bc8df5578dd23

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Show that `chunk` requires an explicit positive integer `size`, even on a typical call. HOW
パッケージ
es-toolkit 1.49.0
環境
node
作成日
2026-08-17T03:16:23Z

よくある思い込み

Most callers assume the second argument of `chunk` defaults to 1 when omitted.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート