Function newDeck

  • Category

    Get a sorted deck of cards.

    Time complexity: O(n)

    Space complexity: O(n)

    Returns Card[]

    A sorted deck of cards

    Cards

    import { shuffle } from '@jonahsnider/util';

    const deck = newDeck();