Checks whether every of the provided values of areRegExp() is a regular expression of RegExp.

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


The return value is a boolean indicating whether the provided values of areRegExp() are regular expressions of a RegExp.

Example usage

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

areRegExp(/^[]/, /^[]/, /^[]/, 3).every((result, value, payload) => {
  result // false
  value // [/^[]/, /^[]/, /^[]/, 3]
  payload // undefined
  return result;
}); // false, boolean

Last updated