パッケージの詳細

@ndhoule/drop

ndhoule104.7kMIT2.0.0

Produce a new array composed of all but the first n elements of an input collection.

component

readme

drop CI

Produce a new array composed of all but the first n elements of an input collection.

Installation

$ component install ndhoule/drop
$ npm install @ndhoule/drop

API

drop(count : number, collection : Array) => Array

Produce a new array composed of all but the first n elements of an input collection.

drop([1, 2, 3]); // => [2, 3]

License

Released under the MIT license.

更新履歴

2.0.0

  • Remove Component/Duo support

1.0.0

Initial release