Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sectioned-list

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sectioned-list - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "sectioned-list",
"version": "1.0.1",
"version": "1.0.2",
"description": "A linked list of arrays with predefined max lengths. Add to the list and items flow into sections.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,5 +18,9 @@ A linked list of arrays with predefined max lengths.

- `new constructor(config)` Create a new instance with a config object.
- `addItem(<any>)` Adds an item to the next section that has space for it.
- `addItems(Array<any>)` Adds the items to the list by calling `addItem()` for each item in order.
- `sections` Get all sections in the list.
- `sections` Get all sections in the list. A section's items can be accessed via its `items` field.
- `sectionedItems` Get an array of the items in the list in their section arrays. The returned value looks like this: `Array<Array<any>>`

@@ -23,0 +27,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc