some()

areString().some()

Checks whether some of the provided values of areString() are a stringarrow-up-right type or an instance of Stringarrow-up-right.

circle-info

The method uses some() method of areDeterminer().

Returns

The return value is a booleanarrow-up-right indicating whether some of the provided values of areString() are a stringarrow-up-right type or an instance of Stringarrow-up-right.

Example usage

// Example usage.
import { areString } from '@angular-package/type';

areString(1, '2', '3').some((result, value, payload) => {
  result // true
  value // [1, '2', '3']
  payload // undefined
  return result;
}); // true, boolean

Last updated