Rocky_Mountain_Vending/.pnpm-store/v10/files/64/07ce035532239574b01231fa51785ac83653ccb220f99d038f6c5cfa028a9a9a856f88d39e84af080ceb45fbedd1333e2e7e9bd9d92045f48822011cdacc59
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

34 lines
920 B
Text

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview A collection of general type verification functions for dealing
* with external data. If these grow in scope they could be auto-generated with
* something like `io-ts`, but it's not worth the complexity yet.
*/
/**
* Type predicate verifying `val` is an object (excluding `Array` and `null`).
* @param {unknown} val
* @return {val is Record<string, unknown>}
*/
function isObjectOfUnknownValues(val) {
return typeof val === 'object' && val !== null && !Array.isArray(val);
}
/**
* Type predicate verifying `val` is an object or an array.
* @param {unknown} val
* @return {val is Record<string, unknown>|Array<unknown>}
*/
function isObjectOrArrayOfUnknownValues(val) {
return typeof val === 'object' && val !== null;
}
export {
isObjectOfUnknownValues,
isObjectOrArrayOfUnknownValues,
};