shillingp/atom-lorem

Use functional style for `hasCommand`

Closed this issue · 1 comments

// Use
atom.commands
  .findCommands({target: element})
  .some(cmd => cmd.name === name)
// Instead of
!!atom.commands
  .findCommands({target: element})
  .filter(cmd => cmd.name === name)[0]

Fixed in #d28974