UNPKG

topkat-utils

Version:

A comprehensive collection of TypeScript/JavaScript utility functions for common programming tasks. Includes validation, object manipulation, date handling, string formatting, and more. Zero dependencies, fully typed, and optimized for performance.

9 lines (7 loc) 194 B
export function isNodeJs(): boolean { try { return (typeof process !== 'undefined') && (typeof process.versions.node !== 'undefined') } catch (e) { return false } }