Update index.ts
This commit is contained in:
parent
773a1cfb74
commit
ac83b78dbf
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ is.any = (predicate: Predicate | Predicate[], ...values: unknown[]): boolean =>
|
||||||
|
|
||||||
is.all = (predicate: Predicate, ...values: unknown[]): boolean => predicateOnArray(Array.prototype.every, predicate, values);
|
is.all = (predicate: Predicate, ...values: unknown[]): boolean => predicateOnArray(Array.prototype.every, predicate, values);
|
||||||
|
|
||||||
const assertType = (condition: boolean, description: string, value: unknown, options: { multipleValues?: boolean } = {}): asserts condition => {
|
const assertType = (condition: boolean, description: string, value: unknown, options: {multipleValues?: boolean} = {}): asserts condition => {
|
||||||
if (!condition) {
|
if (!condition) {
|
||||||
const {multipleValues} = options;
|
const {multipleValues} = options;
|
||||||
const valuesMessage = multipleValues ?
|
const valuesMessage = multipleValues ?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue