ARROW-9580: [JS][Doc] Fix syntax error in example code
ARROW-9580: [JS][Doc] Fix syntax error in example code

Closes #7844 from domoritz/patch-2

Authored-by: Dominik Moritz <addeb72ed7b7df5f4ba2327b9379e72239c27bb5@gmail.com>
Signed-off-by: Neal Richardson <beb59f0141269d2d04e73d0dcc1967b64ba87e13@gmail.com>

laurentgo/arrow,apache/arrow,wesm/arrow,kou/arrow,apache/arrow,wesm/arrow,laurentgo/arrow,cpcloud/arrow,wesm/arrow,laurentgo/arrow,xhochy/arrow,laurentgo/arrow,apache/arrow,apache/arrow,icexelloss/arrow,apache/arrow,kou/arrow,xhochy/arrow,laurentgo/arrow,xhochy/arrow,apache/arrow,cpcloud/arrow,laurentgo/arrow,icexelloss/arrow,apache/arrow,apache/arrow,laurentgo/arrow,kou/arrow,icexelloss/arrow,apache/arrow,cpcloud/arrow,kou/arrow,laurentgo/arrow,cpcloud/arrow,icexelloss/arrow,wesm/arrow,xhochy/arrow,laurentgo/arrow,cpcloud/arrow,wesm/arrow,icexelloss/arrow,wesm/arrow,apache/arrow,icexelloss/arrow,kou/arrow,xhochy/arrow,icexelloss/arrow,xhochy/arrow,kou/arrow,xhochy/arrow,icexelloss/arrow,kou/arrow,cpcloud/arrow,laurentgo/arrow,kou/arrow,laurentgo/arrow,cpcloud/arrow,icexelloss/arrow,cpcloud/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,xhochy/arrow,icexelloss/arrow,apache/arrow,wesm/arrow,xhochy/arrow,wesm/arrow,laurentgo/arrow,wesm/arrow,apache/arrow,xhochy/arrow,wesm/arrow,kou/arrow,cpcloud/arrow,wesm/arrow,kou/arrow,kou/arrow,apache/arrow,cpcloud/arrow,wesm/arrow,xhochy/arrow,xhochy/arrow,wesm/arrow,kou/arrow,laurentgo/arrow,laurentgo/arrow,xhochy/arrow,laurentgo/arrow,wesm/arrow,xhochy/arrow,xhochy/arrow,icexelloss/arrow,cpcloud/arrow,cpcloud/arrow,kou/arrow,kou/arrow,cpcloud/arrow,icexelloss/arrow,cpcloud/arrow