Antimodals prompt callback

I’m using the AntiModals package ( to pop up a prompt when a user tries to delete an item from an articles collection, but I’m struggling to figure out how the callbacks work and there’s no documentation for the package.

Here’s the code:

      title: "Delete article",
      content: "Do you really want to delete this article?",
  }, function(result) {
    console.log(result); //returns null whether I click Okay or Cancel, so the if below is never executed
    if (result) {

How do I figure out whether the user clicked the Okay or the Cancel button in the modal popup? Anyone familiar with the AntiModals package?