
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
@fabryscript/data-structures
Advanced tools
  ;
const queue = new Queue();
const hashTable = new HashTable<number>();
// Use the data structures
stack.push(42);
queue.push('Hello, World!');
hashTable.add('John', 25);
A simple implementation of a stack data structure.
push(item: any)
: Pushes an item onto the stack.pop(): any | undefined
: Pops an item from the stack.peek(): any | undefined
: Retrieves the top item without removing it.isEmpty(): boolean
: Checks if the stack is empty.length(): number
: Returns the current length of the stack.A simple implementation of a queue data structure.
push(item: any)
: Adds an item to the back of the queue.pop(): any | undefined
: Removes an item from the front of the queue.peek(): any | undefined
: Retrieves the front item without removing it.isEmpty(): boolean
: Checks if the queue is empty.length(): number
: Returns the current length of the queue.A simple implementation of a hash table data structure.
add(key: string, data: T): void
: Adds data to the hash table.get(key: string): BucketData<T>[]
: Retrieves data associated with a key.delete(key: string): void
: Deletes data associated with a key.Contributions are welcome! If you have ideas for improvements or new features, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
  ![GitHub last commit](https://img.shields.io/github/last-commit/fabryscript/
The npm package @fabryscript/data-structures receives a total of 0 weekly downloads. As such, @fabryscript/data-structures popularity was classified as not popular.
We found that @fabryscript/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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.