lib/parse.js
function isEmpty (value) {
  return value === undefined ||
    (typeof value === "object" && Object.keys(value).length === 0) ||
    (typeof value === "string" && value.trim().length === 0) ||
    (Buffer.isBuffer(value) && value.length === 0);
}
function isEmpty (value) {
  return value === undefined ||
    (typeof value === "object" && Object.keys(value).length === 0) ||
    (typeof value === "string" && value.trim().length === 0) ||
    (Buffer.isBuffer(value) && value.length === 0);
}
function isEmpty ( value ) { return value === undefined || ( typeof value === "object" && Object . keys ( value ) . length === 0 ) || ( typeof value === "string" && value . trim ( ) . length === 0 ) || ( Buffer . isBuffer ( value ) && value . length === 0 ) ; }
Determines whether the parsed value is "empty".

@param {*} value
@returns {boolean}
Determines whether the parsed value is empty .