UNPKG

cashify-es2017

Version:

Lightweight currency conversion library, successor of money.js

12 lines (11 loc) 314 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Check if an object contains a key. * @param obj The object to check. * @param key The key to check for. */ function hasKey(object, key) { return Object.prototype.hasOwnProperty.call(object, key); } exports.default = hasKey;