![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
sb-js-data-structures
Advanced tools
JavaScript Data Structure written in TypeScript
Using npm:
npm install sb-ds-data-structures
Then where needed:
import { LinkedList } from 'sb-js-data-structures'
const list = new LinkedList()
list.addToLast(1)
list.addToLast(2)
Creates a Linked List, a data structure where each element is a separate object and the elements are linked using pointers.
import { LinkedList } from 'sb-js-data-structures'
const list = new LinkedList()
public addToLast(element: T): void
T
- The element to be insertedInsert an element to the ending of the Linked List.
public addToHead(element: T): void
T
- The element to be insertedInsert an element to the beginning of the Linked List.
public addElementAtPosition(element: T, position: number): void
T
- The element to be insertednumber
- position where the element should be insertedInsert an element to a specific position of the Linked List, since position
is less then the number of elements of the Linked List.
public removeFromLast(): void
Remove the element on the ending of the Linked List.
public removeFromHead(): void
Remove the element on the beginning of the Linked List.
public removeFirstElementFoundFromList(element: T): void
T
- The element to be removedRemove the first element found on the Linked List.
public removeAllElementsFromList(element: T): void
T
- The element to be removedRemove all the elements found on the Linked List.
public reverse(): void
Reverse the Linked List.
public fromArray(element: T[]): void
T[]
- Array of elementsInsert all the elements
at the ending of the Linked List.
public toArray(): T[]
Create an array with all the elements of the Linked List.
public getLength(): number
Get the length of the Linked List.
public isEmpty(): boolean
true
if the Linked List has no elements, otherwise, returns false
.Informs if the Linked List is empty.
public isEmpty(): boolean
Console log the Linked List elements.
MIT
FAQs
JavaScript Data Structure written in TypeScript
The npm package sb-js-data-structures receives a total of 3 weekly downloads. As such, sb-js-data-structures popularity was classified as not popular.
We found that sb-js-data-structures demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.