5.0.0-rc.0

every()

areString().every()

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

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

Returns

The return value is a boolean indicating whether 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').every((result, value, payload) => {
  result // true
  value // [1, '2', '3']
  payload // undefined
  return result;
}); // false, boolean

Last updated