isUndefined.js

/**
 * Type detection beyond `typeof`
 * 
 * Copyright (C) 2022  Dieter Raber
 * https://opensource.org/licenses/MIT
 */
import getType from "./getType.js";

/**
 * Check if a value is undefined
 * @param {*} value The value to check
 * @returns {Boolean}
 * @example
 * let foo;
 * isUndefined(foo); // true
 */
const isUndefined = (value) => getType(value) === "Undefined";

export default isUndefined;