some()

areString().some()

Checks whether some of the provided values of areString() are a string type or an instance of String.

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

Returns

The return value is a boolean indicating whether some of the provided values of areString() are a string type or an instance of String.

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