5.0.0-rc.0

some()

areSymbol().some()

Checks whether some of the provided values of areSymbol() are a symbol type.

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

Returns

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

Example usage

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

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

Last updated