UNPKG

cashify

Version:

Lightweight currency conversion library, successor of money.js

8 lines (7 loc) 256 B
import { Rates } from '../lib/options.js'; /** * Check if an object contains a key. * @param obj The object to check. * @param key The key to check for. */ export default function hasKey<T>(object: Rates, key: string | number | symbol): key is keyof T;