Rust backend: SQLite (WAL mode, 8 tables), vault encryption (Argon2id + AES-256-GCM), settings/connections/credentials services, 19 Tauri command wrappers. 46/46 tests passing. Vue 3 frontend: unlock/create vault flow, Pinia app store, Tailwind CSS v4 dark theme with Wraith branding. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
512 B
JavaScript
16 lines
512 B
JavaScript
/**
|
|
* A factory function that creates a function to check if the payload is one of the given types.
|
|
*
|
|
* @example
|
|
* import { isOneOf, isNull, isUndefined } from 'is-what'
|
|
*
|
|
* const isNullOrUndefined = isOneOf(isNull, isUndefined)
|
|
*
|
|
* isNullOrUndefined(null) // true
|
|
* isNullOrUndefined(undefined) // true
|
|
* isNullOrUndefined(123) // false
|
|
*/
|
|
export function isOneOf(a, b, c, d, e) {
|
|
return (value) => a(value) || b(value) || (!!c && c(value)) || (!!d && d(value)) || (!!e && e(value));
|
|
}
|