@@ -0,1 +1,4 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hasProperty = void 0; | ||
| /** | ||
@@ -7,4 +10,5 @@ * This is a type guard that determines whether the given unknown value | ||
| */ | ||
| export function hasProperty(value, propName) { | ||
| function hasProperty(value, propName) { | ||
| return typeof value === "object" && value !== null && propName in value; | ||
| } | ||
| exports.hasProperty = hasProperty; |
+1
-1
| { | ||
| "name": "unknown", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "description": "A TypeScript utility library for interacting with the 'unknown' type.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
4268
3.37%31
14.81%