UNPKG

@pinecone-database/pinecone

Version:

This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.

15 lines 471 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBrowser = exports.isEdge = void 0; const isEdge = () => { // This is the recommended way to detect // running in the Edge Runtime according // to Vercel docs. return typeof EdgeRuntime === 'string'; }; exports.isEdge = isEdge; const isBrowser = () => { return typeof window !== 'undefined'; }; exports.isBrowser = isBrowser; //# sourceMappingURL=environment.js.map