Function getPostIdFromSlug

  • Extract post id from the slug generated from createPostSlug

    Parameters

    • slug: string

    Returns undefined | string