UNPKG

diffusion

Version:

Diffusion JavaScript client

22 lines (21 loc) 559 B
"use strict"; /** * @module Util.Object * * @brief Utility functions for objects and object types */ Object.defineProperty(exports, "__esModule", { value: true }); exports.isObjectAs = void 0; /** * Cheap type guard for a specific type * * Check is a variable is an object and assume that it is of a given type * * @param o the object to check * @param <T> the type that is assumed if `o` is an object * @return `true` if `o` is an object */ function isObjectAs(o) { return (o instanceof Object); } exports.isObjectAs = isObjectAs;