hugoWebsite/node_modules/defined/index.js

10 lines
178 B
JavaScript

'use strict';
module.exports = function defined() {
for (var i = 0; i < arguments.length; i++) {
if (typeof arguments[i] !== 'undefined') {
return arguments[i];
}
}
};