Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function takeWidth

    • The query string with every spool-w parameter removed, and the width the last one named when it is one of widths. A value that is not a listed width is dropped without a width, so the request is answered as if it had none.

      Parameters

      • search: string
      • widths: readonly number[]

      Returns { search: string; width?: number }