first commit
This commit is contained in:
45
build/node_modules/validate.io-undefined/lib/index.js
generated
vendored
Normal file
45
build/node_modules/validate.io-undefined/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
*
|
||||
* VALIDATE: undefined
|
||||
*
|
||||
*
|
||||
* DESCRIPTION:
|
||||
* - Validates if a value is undefined.
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
* [1]
|
||||
*
|
||||
*
|
||||
* TODO:
|
||||
* [1]
|
||||
*
|
||||
*
|
||||
* LICENSE:
|
||||
* MIT
|
||||
*
|
||||
* Copyright (c) 2014. Athan Reines.
|
||||
*
|
||||
*
|
||||
* AUTHOR:
|
||||
* Athan Reines. kgryte@gmail.com. 2014.
|
||||
*
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* FUNCTION: isUndefined( value )
|
||||
* Validates if a value is undefined.
|
||||
*
|
||||
* @param {*} value - value to be validated
|
||||
* @returns {Boolean} boolean indicating whether value is undefined
|
||||
*/
|
||||
function isUndefined( value ) {
|
||||
return value === void 0;
|
||||
} // end FUNCTION isUndefined()
|
||||
|
||||
|
||||
// EXPORTS //
|
||||
|
||||
module.exports = isUndefined;
|
||||
Reference in New Issue
Block a user