some()

areRegExp().some()

Checks whether some of the provided values of areRegExp() are regular expressions of RegExp.

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

Returns

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

Example usage

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

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

Last updated