starry.delimit

4.0.0 • Public • Published

Member of the starry suite—modular functions for iterable objects.

npm node

Status

Applies to the whole suite.

Build Status Coverage Status

Usage

function delimit<T = any, U = any>(
  iterable: Iterable<T>,
  delimiter: U
  ): Iterable<T | U>

Separates each element in the iterable with a delimiter. Returns a new iterable with the values separated by the delimiter.

Parameters:

  • iterable: Iterable<T>
  • delimiter: U

Returns: Iterable<T | U>

Package Sidebar

Install

npm i starry.delimit

Weekly Downloads

0

Version

4.0.0

License

MIT

Unpacked Size

4.77 kB

Total Files

9

Last publish

Collaborators

  • seangenabe