query
On this page

isOption

lib.options.isOption

Docs pulled from | This Revision | 10 minutes ago


Returns true when the given argument is an option

Type

isOption :: a -> bool

Examples

isOption usage example

isOption 1             // => false
isOption (mkOption {}) // => true

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

isOption = lib.isType "option";