INNER CODE UNIT · TypeScript

Queue

testshallpass/react-native-dropdownalert · Queue.ts:3

export default class Queue {
  #array: DropdownAlertData[];

  constructor() {
    this.#array = [];
  }

  get first() {
    return this.#array[0];
  }
  get size() {
    return this.#array.length;
  }
  get isEmpty() {
    return this.size === 0;
  }

  enqueue(data: DropdownAlertData) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…