isStringIncludesSome()
Last updated
Was this helpful?
Last updated
Was this helpful?
isStringIncludesSome()
Checks if value is a type or an instance of (by using ) that includes some of the specified words/sentences.
Type
extends
AnyString
=
string
Payload
extends
object
=
object
value: any
includes: string[]
callback: ResultCallback<any, { includes: typeof includes } & Payload>
payload?: Payload
value is Type
A generic type variable Type
constrained by generic type indicates the type of the given via the .
The Payload
generic type variable constrained by indicates the type of optional parameter of the supplied function and optional parameter of the function from which it captures its value.
The value of type to check against the that some of the words/sentences.
An of as words/sentences to be case-sensitive searched for within a given .
A callback function
of type with parameters, the that has been checked, the of this check, and of generic type variable with optional properties from the provided , to handle them before the return. By default, it uses function.
The parameter of the function consists of the property given in parameter of the core function, and it can't be overwritten by the given parameter of the core function.
An optional of the generic type variable is assigned to the of the given function.
The return type is a as the result of its statement indicating the is a generic type variable by default .
The return value is a indicating whether the provided is a type or an instance of that includes some of the specified words/sentences.