API Reference

Returns a boolean of whether not the first parameter (array or string) includes the second parameter, ignoring case.

export function lazyIncludes<T extends string | any[]>(
  a: T,
  b: T extends (infer U)[] ? U : string
)

// Example:

lazyIncludes("Hello world", "LL") //=> true

lazyIncludes("Hello world", "ff") //=> false