@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
13 lines (12 loc) • 370 B
TypeScript
/**
* Inverts a boolean function. Very useful to use with {@link Array.filter}.
*
* E.g.
* ```typescript
* // this:
* const nonHumans = animals.filter(a => !isHuman(a));
* // becomes:
* const nonHumans = animals.filter(not(isHuman));
* ```
*/
export declare const not: <TArgs extends unknown[]>(fn: (...args: TArgs) => boolean) => (...args: TArgs) => boolean;