take

fun take(limit: Number, options: ArrayOptions = definedExternally): Readable(source)

This method returns a new stream with the first limit chunks.

Since

v17.5.0

Parameters

limit

the number of chunks to take from the readable.