UNPKG

342 BJavaScriptView Raw
1'use strict';
2
3/**
4 * Checks whether a value is undefined
5 *
6 * @function undefined
7 *
8 * @example
9 * var is = require('predicates');
10 *
11 * is.undefined(undefined); // true
12 * is.undefined(0); // false
13 *
14 * @param {*} value
15 * @returns {Boolean}
16 */
17module.exports = function isUndefined(value) {
18 return typeof value === 'undefined';
19};