lib/renderer/api/desktop-capturer.js
function isValid (options) {
  const types = options ? options.types : undefined
  return Array.isArray(types)
}
function isValid (options) {
  const types = options ? options.types : undefined
  return Array.isArray(types)
}
function isValid ( options ) { const types = options ? options . types : undefined return Array . isArray ( types ) }
|options.types| can't be empty and must be an array
|options . types| can t be empty and must be an array