readable.drop(limit[, options])


稳定性: 1 - 实验性

此方法返回一个新流,其中前 limit 个块已被删除。

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

import { Readable } from 'node:stream';

await Readable.from([1, 2, 3, 4]).drop(2).toArray(); // [3, 4]