UNPKG

com-tools

Version:

com-tools 提供了一些通用的工具函数;

69 lines (32 loc) 802 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [toJSONArrayFragment](./com-tools.tojsonarrayfragment.md) ## toJSONArrayFragment() function 将可迭代的对象转成 JSON 数组片断 **Signature:** ```typescript export declare function toJSONArrayFragment(items: Iterable<any>, space?: string | number): string; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> items </td><td> Iterable&lt;any&gt; </td><td> </td></tr> <tr><td> space </td><td> string \| number </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** string